Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.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.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 110.6 kB / 16.42 MB, free: 6.469 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.001773/0.001773, allocations: 190.7 kB / 17.35 MB, free: 5.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.44/1.44, allocations: 222.9 MB / 241 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.71/2.71, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 68.12 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8565/0.858, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002886/0.861, allocations: 1.583 MB / 1.169 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001468/0.8625, allocations: 0.6897 MB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.372e-05/0.8626, allocations: 0 / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.8627, allocations: 19.8 kB / 1.17 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.887e-05/0.8628, allocations: 19.81 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function 'Buildings.Utilities.IO.Files.BaseClasses.printRealArray' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.8634, allocations: 111.7 kB / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.8636, allocations: 143.5 kB / 1.17 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.8638, allocations: 41.08 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.8639, allocations: 47.84 kB / 1.17 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.864, allocations: 63.73 kB / 1.17 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.8641, allocations: 8 kB / 1.17 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.8643, allocations: 59.91 kB / 1.17 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.718e-05/0.8643, allocations: 31.84 kB / 1.17 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.686e-05/0.8644, allocations: 59.66 kB / 1.17 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002752/0.8647, allocations: 167.9 kB / 1.17 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.8647, allocations: 4 kB / 1.17 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8647, allocations: 4 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.8647, allocations: 0 / 1.17 GB, free: 0.7891 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009015/0.8656, allocations: 0.5466 MB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.8657, allocations: 8.922 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.39e-05/0.8658, allocations: 20.84 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.8661, allocations: 224.1 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.8661, allocations: 8.375 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.8661, allocations: 8.375 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.8664, allocations: 133 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.8665, allocations: 0 / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.8665, allocations: 4 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.8665, allocations: 4 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.8668, allocations: 71.88 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.8675, allocations: 464.7 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.8677, allocations: 85.12 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.8678, allocations: 45.81 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.8679, allocations: 4 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003158/0.8682, allocations: 145 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.824e-06/0.8682, allocations: 0 / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0005747/0.8688, allocations: 185.4 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.8688, allocations: 85.11 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.869, allocations: 162.4 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.869, allocations: 29.7 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.175e-05/0.8691, allocations: 112.4 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/0.8692, allocations: 27.78 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.765e-05/0.8692, allocations: 37.7 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.8694, allocations: 326.8 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.8695, allocations: 43.95 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.8697, allocations: 117.5 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.87, allocations: 147.5 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.87, allocations: 0 / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000369/0.8704, allocations: 169.9 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.8704, allocations: 4 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.8704, allocations: 7.984 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.8704, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.8705, allocations: 19.86 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.8706, allocations: 4 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.8707, allocations: 20.05 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.8707, allocations: 11.88 kB / 1.173 GB, free: 13.22 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001135/0.8708, allocations: 138.1 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.8708, allocations: 15.94 kB / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.265e-05/0.8709, allocations: 17.41 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.8709, allocations: 0 / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8709, allocations: 4 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.878e-05/0.871, allocations: 93 kB / 1.174 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.871, allocations: 3.938 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.8711, allocations: 15.98 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.411e-05/0.8712, allocations: 15.98 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004449/0.8716, allocations: 300.1 kB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004543/0.8721, allocations: 401.8 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001503/0.8723, allocations: 51.95 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.953e-05/0.8724, allocations: 124.2 kB / 1.175 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of Backend: time 4.1e-07/0.8724, allocations: 0 / 1.175 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009114/0.8733, allocations: 258.5 kB / 1.175 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006538/0.874, allocations: 0.6712 MB / 1.175 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of Templates: time 0.005685/0.8797, allocations: 1.944 MB / 1.177 GB, free: 9.145 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches