Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.202/2.202, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001099/0.001099, allocations: 173 kB / 492.3 MB, free: 0.6133 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.619/1.619, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0009046/0.0009046, allocations: 87.94 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.888e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3116, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9519/1.264, allocations: 150.9 MB / 1.36 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003673/1.264, allocations: 85.27 kB / 1.36 GB, free: 18.83 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009657/1.274, allocations: 3.037 MB / 1.363 GB, free: 34.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.274, allocations: 0 / 1.363 GB, free: 34.35 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.56e-05/1.274, allocations: 3.906 kB / 1.363 GB, free: 34.35 MB / 0.8386 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.0007348/1.274, allocations: 0.5166 MB / 1.363 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/1.275, allocations: 11.66 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.156e-05/1.275, allocations: 15.53 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/1.275, allocations: 216 kB / 1.364 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/1.275, allocations: 7.25 kB / 1.364 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/1.275, allocations: 11.86 kB / 1.364 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/1.275, allocations: 104.2 kB / 1.364 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.275, allocations: 3.906 kB / 1.364 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/1.275, allocations: 9.25 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/1.275, allocations: 0 / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.122e-05/1.275, allocations: 38.42 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/1.276, allocations: 481.9 kB / 1.364 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/1.276, allocations: 67.61 kB / 1.364 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.858e-05/1.276, allocations: 29.33 kB / 1.364 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/1.276, allocations: 3.938 kB / 1.364 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/1.276, allocations: 121.5 kB / 1.364 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/1.276, allocations: 0 / 1.364 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002587/1.277, allocations: 124.5 kB / 1.365 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/1.277, allocations: 86.5 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/1.277, allocations: 148.5 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/1.277, allocations: 28.52 kB / 1.365 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/1.277, allocations: 112.3 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.872e-05/1.277, allocations: 28.06 kB / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/1.277, allocations: 0 / 1.365 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.582e-05/1.277, allocations: 325.7 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.94e-05/1.277, allocations: 26.31 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.139e-05/1.277, allocations: 104.7 kB / 1.365 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.634e-05/1.277, allocations: 33.67 kB / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/1.277, allocations: 0 / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001625/1.277, allocations: 135.5 kB / 1.365 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/1.277, allocations: 7.688 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/1.277, allocations: 112 / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/1.277, allocations: 7.75 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/1.278, allocations: 20.09 kB / 1.366 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/1.278, allocations: 13.06 kB / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.694e-05/1.278, allocations: 23.06 kB / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/1.278, allocations: 3.812 kB / 1.366 GB, free: 32.21 MB / 0.8386 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 () * 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 9.124e-05/1.278, allocations: 118.3 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.08e-05/1.278, allocations: 11.59 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/1.278, allocations: 18.88 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/1.278, allocations: 0 / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/1.278, allocations: 3.906 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/1.278, allocations: 5.406 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004753/1.278, allocations: 0.5035 MB / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/1.278, allocations: 3.844 kB / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.212e-05/1.279, allocations: 19.11 kB / 1.366 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/1.279, allocations: 0 / 1.366 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/1.279, allocations: 8.781 kB / 1.366 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.279, allocations: 3.906 kB / 1.366 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/1.279, allocations: 8 kB / 1.366 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000224/1.279, allocations: 295.5 kB / 1.367 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.543e-05/1.279, allocations: 94.09 kB / 1.367 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/1.279, allocations: 1.641 kB / 1.367 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/1.279, allocations: 28.62 kB / 1.367 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/1.279, allocations: 10.62 kB / 1.367 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/1.279, allocations: 13.95 kB / 1.367 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.228e-05/1.279, allocations: 118.6 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.279, allocations: 0 / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003316/1.28, allocations: 46.25 kB / 1.367 GB, free: 31.27 MB / 0.8386 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 () * 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.0004071/1.28, allocations: 212 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001856/1.28, allocations: 71.52 kB / 1.367 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.28, allocations: 0 / 1.367 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.414e-05/1.28, allocations: 41.42 kB / 1.367 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/1.281, allocations: 14.05 kB / 1.367 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/1.281, allocations: 162.8 kB / 1.367 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/1.281, allocations: 0.7138 MB / 1.368 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.495e-05/1.281, allocations: 27.41 kB / 1.368 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.243e-05/1.281, allocations: 17.94 kB / 1.368 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.281, allocations: 4 kB / 1.368 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of Templates: time 0.004477/1.286, allocations: 1.629 MB / 1.37 GB, free: 30.15 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches