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.001841/0.001841, allocations: 110.7 kB / 16.42 MB, free: 6.5 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.002361/0.002361, allocations: 185.4 kB / 17.35 MB, free: 5.738 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.464/1.464, allocations: 222.9 MB / 241.1 MB, free: 15.14 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.866/2.866, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 59.89 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9681/0.9696, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003152/0.9728, allocations: 1.601 MB / 1.169 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001535/0.9744, allocations: 0.6936 MB / 1.17 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.054e-05/0.9745, allocations: 0 / 1.17 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.9746, allocations: 11.81 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.161e-05/0.9747, allocations: 23.78 kB / 1.17 GB, free: 1.492 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.0006412/0.9754, allocations: 107.8 kB / 1.17 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.9756, allocations: 139.5 kB / 1.17 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.9758, allocations: 33.11 kB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.9759, allocations: 55.81 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.9761, allocations: 63.7 kB / 1.17 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.976e-05/0.9761, allocations: 12 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.9762, allocations: 51.95 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.9763, allocations: 35.84 kB / 1.17 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.872e-05/0.9764, allocations: 63.66 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000287/0.9767, allocations: 171.2 kB / 1.17 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.9767, allocations: 0 / 1.17 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.132e-06/0.9767, allocations: 0 / 1.17 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.9767, allocations: 0 / 1.17 GB, free: 0.7734 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.0009538/0.9777, allocations: 0.5446 MB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.9777, allocations: 12.62 kB / 1.171 GB, free: 156 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.694e-05/0.9778, allocations: 16.83 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.9781, allocations: 223.9 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.9781, allocations: 4.375 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.9781, allocations: 8.375 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.9785, allocations: 127.7 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.9785, allocations: 4 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.9785, allocations: 7.969 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.9785, allocations: 4 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.9788, allocations: 67.88 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007273/0.9795, allocations: 472.6 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.9797, allocations: 81.17 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.9799, allocations: 45.81 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.9799, allocations: 4 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.9802, allocations: 145 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.9803, allocations: 0 / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.000612/0.9809, allocations: 193.3 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.9809, allocations: 81.09 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.9811, allocations: 154.4 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.9811, allocations: 33.7 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.972e-05/0.9812, allocations: 112.3 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.9813, allocations: 27.61 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.9813, allocations: 33.7 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.9815, allocations: 334.8 kB / 1.173 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/0.9816, allocations: 31.97 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.9818, allocations: 122.3 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.9821, allocations: 147.5 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.9821, allocations: 0 / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003884/0.9825, allocations: 165.7 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.9825, allocations: 8 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.9826, allocations: 0 / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.9826, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.9827, allocations: 27.86 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.9827, allocations: 0 / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.9828, allocations: 12.23 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.9829, allocations: 19.94 kB / 1.173 GB, free: 13.21 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.0001317/0.983, allocations: 137.8 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.983, allocations: 11.84 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.234e-05/0.9831, allocations: 21.39 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.9831, allocations: 0 / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.9831, allocations: 0 / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.9832, allocations: 92.92 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.9832, allocations: 3.938 kB / 1.174 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.9833, allocations: 23.97 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.9834, allocations: 11.98 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004908/0.9839, allocations: 300.1 kB / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004603/0.9844, allocations: 402 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001666/0.9846, allocations: 55.94 kB / 1.174 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.436e-05/0.9847, allocations: 120.2 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of Backend: time 9.02e-07/0.9847, allocations: 0 / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009597/0.9856, allocations: 270.2 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006625/0.9863, allocations: 0.6637 MB / 1.175 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of Templates: time 0.006991/0.9933, allocations: 1.937 MB / 1.177 GB, free: 9.141 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