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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.21/1.21, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.127/2.127, allocations: 390.2 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 63.91 kB / 0.8125 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5339/0.535, allocations: 140.3 MB / 0.9496 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002446/0.5375, allocations: 1.603 MB / 0.9511 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008091/0.5383, allocations: 0.6158 MB / 0.9517 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.738e-05/0.5384, allocations: 1.188 kB / 0.9517 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.5386, allocations: 22.36 kB / 0.9518 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.5388, allocations: 45.81 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.5391, allocations: 112.6 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.5393, allocations: 196.4 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.5395, allocations: 30.22 kB / 0.9521 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.5396, allocations: 81.84 kB / 0.9522 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.5398, allocations: 92.41 kB / 0.9523 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.5398, allocations: 17.94 kB / 0.9523 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.387e-05/0.5399, allocations: 24.16 kB / 0.9523 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.246e-05/0.54, allocations: 28.05 kB / 0.9524 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.82e-05/0.5401, allocations: 76.39 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.5403, allocations: 159 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5403, allocations: 3.938 kB / 0.9526 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5403, allocations: 0 / 0.9526 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.5403, allocations: 0 / 0.9526 GB, free: 6.902 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.0006485/0.541, allocations: 0.558 MB / 0.9531 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.541, allocations: 14.28 kB / 0.9532 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.596e-05/0.5411, allocations: 15.09 kB / 0.9532 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.5413, allocations: 235.8 kB / 0.9534 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.5413, allocations: 5.906 kB / 0.9534 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.722e-05/0.5414, allocations: 15.44 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.5416, allocations: 123.4 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.5416, allocations: 1.312 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.5417, allocations: 2.531 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.5417, allocations: 1.312 kB / 0.9535 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.5418, allocations: 74.09 kB / 0.9536 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.5423, allocations: 412.8 kB / 0.954 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.5425, allocations: 92.09 kB / 0.9541 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.5426, allocations: 74.97 kB / 0.9542 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.5427, allocations: 1.25 kB / 0.9542 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.5429, allocations: 186 kB / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.5429, allocations: 3.938 kB / 0.9543 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006255/0.5435, allocations: 347.3 kB / 0.9547 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.5436, allocations: 167.4 kB / 0.9548 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.5437, allocations: 181.6 kB / 0.955 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.5438, allocations: 33.95 kB / 0.955 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.722e-05/0.5438, allocations: 107.6 kB / 0.9551 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.5439, allocations: 31.66 kB / 0.9552 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.778e-05/0.5439, allocations: 39.39 kB / 0.9552 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.027e-05/0.544, allocations: 335.3 kB / 0.9555 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.5441, allocations: 52.12 kB / 0.9556 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.5443, allocations: 101.7 kB / 0.9557 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.5446, allocations: 317.2 kB / 0.956 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5446, allocations: 0 / 0.956 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004617/0.5451, allocations: 341 kB / 0.9563 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.5451, allocations: 124.7 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.5451, allocations: 2.594 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.5451, allocations: 3.031 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5452, allocations: 19.73 kB / 0.9564 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.5453, allocations: 2.906 kB / 0.9565 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.996e-05/0.5454, allocations: 20.22 kB / 0.9565 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.5454, allocations: 12.77 kB / 0.9565 GB, free: 3.41 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.0001051/0.5455, allocations: 198 kB / 0.9567 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.5455, allocations: 13.41 kB / 0.9567 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/0.5456, allocations: 16.69 kB / 0.9567 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.5456, allocations: 1.656 kB / 0.9567 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5456, allocations: 7.984 kB / 0.9567 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.5456, allocations: 0 / 0.9567 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005377/0.5461, allocations: 0.5824 MB / 0.9573 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.5461, allocations: 0 / 0.9573 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.936e-05/0.5462, allocations: 12.95 kB / 0.9573 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.5462, allocations: 0 / 0.9573 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.5462, allocations: 5.375 kB / 0.9573 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5462, allocations: 9.734 kB / 0.9573 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5462, allocations: 7.938 kB / 0.9573 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004165/0.5467, allocations: 407.3 kB / 0.9577 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.276e-05/0.5467, allocations: 87.75 kB / 0.9578 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.249e-05/0.5467, allocations: 8.125 kB / 0.9578 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.5468, allocations: 6.875 kB / 0.9578 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.5469, allocations: 10.67 kB / 0.9578 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.5469, allocations: 17.48 kB / 0.9578 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.475e-05/0.547, allocations: 122.8 kB / 0.9579 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.547, allocations: 0 / 0.9579 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002625/0.5472, allocations: 39.56 kB / 0.958 GB, free: 2.152 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.0001685/0.5474, allocations: 129.9 kB / 0.9581 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003875/0.5478, allocations: 365.3 kB / 0.9585 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5478, allocations: 0 / 0.9585 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.548, allocations: 205.2 kB / 0.9586 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.5483, allocations: 24.77 kB / 0.9587 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004651/0.5488, allocations: 288 kB / 0.9589 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.5489, allocations: 0.7154 MB / 0.9596 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.593e-05/0.5489, allocations: 16.27 kB / 0.9597 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.794e-05/0.549, allocations: 17.55 kB / 0.9597 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.549, allocations: 0 / 0.9597 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of Templates: time 0.004351/0.5533, allocations: 2.066 MB / 0.9617 GB, free: 15.54 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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