Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006624/0.006624, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001418/0.001418, allocations: 188.5 kB / 16.67 MB, free: 5.926 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437 MB / 0.7105 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 71.88 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8456/0.8468, allocations: 151.6 MB / 1.167 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00278/0.8497, allocations: 1.625 MB / 1.168 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009172/0.8506, allocations: 0.6078 MB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.58e-05/0.8507, allocations: 8 kB / 1.169 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.8508, allocations: 23.78 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.8511, allocations: 43.77 kB / 1.169 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.8515, allocations: 111.7 kB / 1.169 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002281/0.8517, allocations: 191.6 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.8518, allocations: 29.09 kB / 1.169 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.852, allocations: 87.7 kB / 1.169 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.8521, allocations: 83.72 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.877e-05/0.8521, allocations: 12 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.187e-05/0.8522, allocations: 31.98 kB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.8523, allocations: 27.91 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.057e-05/0.8524, allocations: 79.64 kB / 1.169 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.8526, allocations: 167.9 kB / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.8526, allocations: 0 / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.684e-06/0.8526, allocations: 0 / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.8526, allocations: 0 / 1.17 GB, free: 0.7695 MB / 0.8887 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.0006564/0.8533, allocations: 0.5601 MB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.8533, allocations: 8.922 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.8534, allocations: 20.84 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.8538, allocations: 244.2 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.8538, allocations: 16.31 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.004e-05/0.8538, allocations: 8.375 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.8541, allocations: 121.7 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.8541, allocations: 0 / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.8541, allocations: 4 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.8541, allocations: 3.984 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.8543, allocations: 67.94 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.8549, allocations: 420.5 kB / 1.171 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.8551, allocations: 90.53 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.8553, allocations: 68.81 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.8553, allocations: 8 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.8556, allocations: 182.7 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.8556, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0006641/0.8562, allocations: 349 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.445e-05/0.8564, allocations: 166.1 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.8565, allocations: 183.7 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.8565, allocations: 29.7 kB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.311e-05/0.8566, allocations: 108.4 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.8567, allocations: 27.75 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.8567, allocations: 37.7 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.8568, allocations: 330.8 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.857, allocations: 51.95 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.8571, allocations: 112 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003304/0.8575, allocations: 308.9 kB / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.8575, allocations: 0 / 1.173 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005093/0.858, allocations: 356.5 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.907e-05/0.8581, allocations: 114.8 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.8581, allocations: 3.984 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.8581, allocations: 7.938 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.8582, allocations: 20 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.8583, allocations: 12.05 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.959e-05/0.8584, allocations: 8 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.8584, allocations: 11.94 kB / 1.174 GB, free: 12.34 MB / 0.9044 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.0001553/0.8585, allocations: 215.9 kB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.8586, allocations: 15.91 kB / 1.174 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.471e-05/0.8586, allocations: 13.41 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.8586, allocations: 0 / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.8586, allocations: 4 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.8587, allocations: 0 / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006776/0.8593, allocations: 0.5836 MB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8594, allocations: 4 kB / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.187e-05/0.8594, allocations: 11.98 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.8594, allocations: 4 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.8595, allocations: 8 kB / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.8595, allocations: 0 / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8595, allocations: 3.938 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005156/0.86, allocations: 402.7 kB / 1.175 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.862e-05/0.8601, allocations: 89.05 kB / 1.175 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.8601, allocations: 4 kB / 1.175 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.8602, allocations: 8 kB / 1.175 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.965e-05/0.8603, allocations: 19.91 kB / 1.175 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.8603, allocations: 4 kB / 1.175 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.847e-05/0.8604, allocations: 136.8 kB / 1.175 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8604, allocations: 0 / 1.175 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002859/0.8607, allocations: 35.94 kB / 1.175 GB, free: 10.66 MB / 0.9044 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.0002496/0.8609, allocations: 135 kB / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004886/0.8614, allocations: 361.9 kB / 1.176 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.8615, allocations: 4.062 kB / 1.176 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.8617, allocations: 210.7 kB / 1.176 GB, free: 9.895 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.862, allocations: 16 kB / 1.176 GB, free: 9.879 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005644/0.8626, allocations: 301.8 kB / 1.176 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.8628, allocations: 0.708 MB / 1.177 GB, free: 8.824 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.836e-05/0.8629, allocations: 20.53 kB / 1.177 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.17e-05/0.8629, allocations: 11.44 kB / 1.177 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.863, allocations: 0 / 1.177 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of Templates: time 0.004851/0.8678, allocations: 2.082 MB / 1.179 GB, free: 6.738 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches