Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 196.8 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.387/2.387, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6442/0.6457, allocations: 140.4 MB / 0.949 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002722/0.6485, allocations: 1.662 MB / 0.9507 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008153/0.6493, allocations: 0.6382 MB / 0.9513 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.222e-05/0.6494, allocations: 1.5 kB / 0.9513 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.6495, allocations: 23.03 kB / 0.9513 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.6497, allocations: 30.19 kB / 0.9513 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.65, allocations: 109.7 kB / 0.9514 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.6502, allocations: 160.2 kB / 0.9516 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.6503, allocations: 34.25 kB / 0.9516 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.6505, allocations: 75.12 kB / 0.9517 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.6506, allocations: 81.59 kB / 0.9518 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.6506, allocations: 6.719 kB / 0.9518 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.546e-05/0.6507, allocations: 23.11 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.6508, allocations: 26.75 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.6509, allocations: 68.25 kB / 0.9519 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001879/0.6511, allocations: 158.5 kB / 0.9521 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.6511, allocations: 4 kB / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.82e-07/0.6511, allocations: 0 / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.6511, allocations: 0 / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005713/0.6517, allocations: 0.558 MB / 0.9526 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.6517, allocations: 9.969 kB / 0.9526 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.336e-05/0.6517, allocations: 37.94 kB / 0.9526 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.621e-05/0.6518, allocations: 15.94 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.652, allocations: 239.7 kB / 0.9529 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.6521, allocations: 13.97 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.208e-05/0.6521, allocations: 11.69 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.6524, allocations: 122.9 kB / 0.953 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-06/0.6524, allocations: 0 / 0.953 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.6524, allocations: 2.594 kB / 0.953 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.6524, allocations: 1.25 kB / 0.953 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.6526, allocations: 71 kB / 0.9531 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005452/0.6532, allocations: 417.2 kB / 0.9535 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.6534, allocations: 86.28 kB / 0.9536 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.6535, allocations: 75.91 kB / 0.9537 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.6535, allocations: 9.672 kB / 0.9537 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.6538, allocations: 178.3 kB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.6538, allocations: 0 / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006872/0.6545, allocations: 346.5 kB / 0.9542 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.6546, allocations: 163.9 kB / 0.9543 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.6547, allocations: 185.7 kB / 0.9545 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.6547, allocations: 33.42 kB / 0.9545 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.6548, allocations: 107.8 kB / 0.9546 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.6548, allocations: 27.8 kB / 0.9547 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.6549, allocations: 39.23 kB / 0.9547 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5e-05/0.6549, allocations: 331.1 kB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.6551, allocations: 48.09 kB / 0.9551 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.6552, allocations: 104.9 kB / 0.9552 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.6555, allocations: 313.4 kB / 0.9555 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.6555, allocations: 1.219 kB / 0.9555 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004923/0.656, allocations: 344.5 kB / 0.9558 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.593e-05/0.6561, allocations: 122.8 kB / 0.9559 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.6561, allocations: 5.094 kB / 0.9559 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.6561, allocations: 3.75 kB / 0.9559 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.6562, allocations: 16.8 kB / 0.9559 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.6563, allocations: 2.5 kB / 0.9559 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.822e-05/0.6564, allocations: 20.81 kB / 0.956 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.6564, allocations: 19.27 kB / 0.956 GB, free: 3.289 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.6565, allocations: 201.1 kB / 0.9562 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.6566, allocations: 16.78 kB / 0.9562 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.6566, allocations: 17.75 kB / 0.9562 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.6566, allocations: 4 kB / 0.9562 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6566, allocations: 1.25 kB / 0.9562 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.6566, allocations: 3.984 kB / 0.9562 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006069/0.6572, allocations: 0.5867 MB / 0.9568 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.6573, allocations: 0 / 0.9568 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.554e-05/0.6573, allocations: 12.27 kB / 0.9568 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.6573, allocations: 1.438 kB / 0.9568 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.6574, allocations: 3.719 kB / 0.9568 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.6574, allocations: 1.188 kB / 0.9568 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.6574, allocations: 3.938 kB / 0.9568 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004974/0.6579, allocations: 412.3 kB / 0.9572 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.6579, allocations: 83.8 kB / 0.9573 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.658, allocations: 4.094 kB / 0.9573 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.6581, allocations: 10.69 kB / 0.9573 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.975e-05/0.6581, allocations: 10.67 kB / 0.9573 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.6582, allocations: 6.344 kB / 0.9573 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.099e-05/0.6582, allocations: 130.4 kB / 0.9574 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6582, allocations: 0 / 0.9574 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002911/0.6585, allocations: 43.06 kB / 0.9575 GB, free: 2.031 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007645/0.6593, allocations: 0.9577 MB / 0.9584 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004119/0.6597, allocations: 362.1 kB / 0.9587 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.6597, allocations: 1.25 kB / 0.9588 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.66, allocations: 204.9 kB / 0.9589 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.6603, allocations: 27.77 kB / 0.959 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.6626, allocations: 2.123 MB / 0.961 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.6629, allocations: 0.7124 MB / 0.9617 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.1e-05/0.663, allocations: 16.2 kB / 0.9618 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.141e-05/0.663, allocations: 37.36 kB / 0.9618 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.663, allocations: 0 / 0.9618 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01362/0.6767, allocations: 3.408 MB / 0.9651 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001675/0.6769, allocations: 198.1 kB / 0.9653 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.421, allocations: 9.031 kB / 0.9653 GB, free: 12.14 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches