Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.219/2.219, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 187.9 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.727/1.727, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 92.33 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004182/0.0004182, allocations: 7 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3444, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1997/0.5441, allocations: 151.8 MB / 1.377 GB, free: 1.711 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.5444, allocations: 87.94 kB / 1.378 GB, free: 1.625 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009198/0.5536, allocations: 3.047 MB / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.994e-06/0.5537, allocations: 0 / 1.38 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.5537, allocations: 4 kB / 1.38 GB, free: 14.55 MB / 0.8855 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.0007408/0.5544, allocations: 0.5233 MB / 1.381 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.5545, allocations: 11.97 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.5546, allocations: 19.8 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.5548, allocations: 219.3 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.5549, allocations: 4 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.5549, allocations: 12 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.5552, allocations: 131.3 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.5552, allocations: 0 / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.5553, allocations: 3.938 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.5553, allocations: 4 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.5555, allocations: 79.94 kB / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000682/0.5562, allocations: 480.7 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.5564, allocations: 89.19 kB / 1.382 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.5565, allocations: 3.984 kB / 1.382 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.5568, allocations: 149.5 kB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.5568, allocations: 3.938 kB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12): time 0.0005759/0.5574, allocations: 217.4 kB / 1.382 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.5574, allocations: 77.11 kB / 1.382 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.5576, allocations: 154.5 kB / 1.383 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.5576, allocations: 29.7 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.386e-05/0.5577, allocations: 112.6 kB / 1.383 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.5577, allocations: 31.69 kB / 1.383 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.5577, allocations: 8 kB / 1.383 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5578, allocations: 318.8 kB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.558, allocations: 47.91 kB / 1.383 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.5582, allocations: 126.3 kB / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.5583, allocations: 63.91 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.5583, allocations: 0 / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003667/0.5587, allocations: 181.5 kB / 1.383 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.5587, allocations: 6.344 kB / 1.383 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.5587, allocations: 11.98 kB / 1.383 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.5588, allocations: 4 kB / 1.383 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.5589, allocations: 23.88 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5589, allocations: 7.984 kB / 1.384 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.559, allocations: 20.12 kB / 1.384 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.559, allocations: 4 kB / 1.384 GB, free: 11.13 MB / 0.8855 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.5592, allocations: 138.5 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.5592, allocations: 19.81 kB / 1.384 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.226e-05/0.5593, allocations: 17.39 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.5593, allocations: 0 / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.5593, allocations: 7.953 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.5593, allocations: 0 / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007053/0.56, allocations: 0.5484 MB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.56, allocations: 0 / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.681e-05/0.5601, allocations: 19.98 kB / 1.384 GB, free: 10.32 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.5601, allocations: 7.953 kB / 1.384 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.5601, allocations: 0 / 1.384 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5601, allocations: 0 / 1.384 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5601, allocations: 3.938 kB / 1.384 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000416/0.5606, allocations: 348.2 kB / 1.385 GB, free: 9.945 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.5606, allocations: 92.88 kB / 1.385 GB, free: 9.836 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.5607, allocations: 4 kB / 1.385 GB, free: 9.832 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.5608, allocations: 27.97 kB / 1.385 GB, free: 9.805 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.5609, allocations: 7.984 kB / 1.385 GB, free: 9.797 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.5609, allocations: 12 kB / 1.385 GB, free: 9.785 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.683e-05/0.561, allocations: 119.2 kB / 1.385 GB, free: 9.668 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.561, allocations: 0 / 1.385 GB, free: 9.668 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003409/0.5614, allocations: 43.98 kB / 1.385 GB, free: 9.625 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004645/0.5619, allocations: 216.1 kB / 1.385 GB, free: 9.441 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003619/0.5622, allocations: 124 kB / 1.385 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5622, allocations: 0 / 1.385 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.5624, allocations: 63.89 kB / 1.385 GB, free: 9.258 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.5626, allocations: 17.48 kB / 1.385 GB, free: 9.242 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005001/0.5632, allocations: 264.9 kB / 1.386 GB, free: 8.961 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.5635, allocations: 0.7284 MB / 1.386 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.046e-05/0.5636, allocations: 28.39 kB / 1.386 GB, free: 8.18 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.23e-05/0.5636, allocations: 11.44 kB / 1.386 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of SimCode: time 3.61e-07/0.5636, allocations: 0 / 1.386 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of Templates: time 0.004565/0.5682, allocations: 1.611 MB / 1.388 GB, free: 6.57 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches