Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.455/1.455, allocations: 249.3 MB / 261.8 MB, free: 5.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 180.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.2 MB / 0.572 GB, free: 10.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 90.52 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.276e-05/3.277e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2209, allocations: 106.3 MB / 0.8918 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8067/1.028, allocations: 133.4 MB / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/1.028, allocations: 88.12 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009074/1.037, allocations: 2.985 MB / 1.025 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.944e-06/1.037, allocations: 0 / 1.025 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.681e-05/1.037, allocations: 0 / 1.025 GB, free: 14.72 MB / 0.6511 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.0008762/1.038, allocations: 0.5139 MB / 1.026 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.668e-05/1.038, allocations: 8.031 kB / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/1.038, allocations: 19.75 kB / 1.026 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003657/1.039, allocations: 229.3 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/1.039, allocations: 4 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.741e-05/1.039, allocations: 11 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/1.039, allocations: 108.3 kB / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/1.039, allocations: 0 / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/1.039, allocations: 3.688 kB / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/1.039, allocations: 4 kB / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.573e-05/1.039, allocations: 37.98 kB / 1.026 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008273/1.04, allocations: 466.2 kB / 1.026 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/1.04, allocations: 75.12 kB / 1.026 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.132e-05/1.04, allocations: 25.59 kB / 1.027 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/1.04, allocations: 7.812 kB / 1.027 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/1.04, allocations: 129 kB / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/1.04, allocations: 0 / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12): time 0.0003755/1.041, allocations: 115.6 kB / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.617e-05/1.041, allocations: 81.09 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/1.041, allocations: 161 kB / 1.027 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/1.041, allocations: 29.08 kB / 1.027 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/1.041, allocations: 104.8 kB / 1.027 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/1.041, allocations: 38.28 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-06/1.041, allocations: 0 / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001691/1.041, allocations: 325.6 kB / 1.027 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.85e-05/1.042, allocations: 18.81 kB / 1.027 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/1.042, allocations: 105.3 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.409e-05/1.042, allocations: 34.92 kB / 1.028 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/1.042, allocations: 4 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001871/1.042, allocations: 122.8 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/1.042, allocations: 12.03 kB / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/1.042, allocations: 0 / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/1.042, allocations: 4 kB / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/1.042, allocations: 19.98 kB / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/1.042, allocations: 7.891 kB / 1.028 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/1.042, allocations: 23.3 kB / 1.028 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/1.042, allocations: 8 kB / 1.028 GB, free: 11.84 MB / 0.6511 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 0.0001127/1.042, allocations: 119.9 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/1.042, allocations: 15.91 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.461e-05/1.043, allocations: 20.47 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/1.043, allocations: 4 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.043, allocations: 3.984 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/1.043, allocations: 3.953 kB / 1.028 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006224/1.043, allocations: 0.5086 MB / 1.028 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/1.043, allocations: 0 / 1.028 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.733e-05/1.043, allocations: 19.92 kB / 1.028 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.043, allocations: 0 / 1.028 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/1.043, allocations: 7.953 kB / 1.028 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.043, allocations: 0 / 1.028 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.043, allocations: 0 / 1.028 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/1.044, allocations: 297.9 kB / 1.029 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.992e-05/1.044, allocations: 96.86 kB / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/1.044, allocations: 0 / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/1.044, allocations: 23.73 kB / 1.029 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/1.044, allocations: 16.06 kB / 1.029 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-05/1.044, allocations: 15.17 kB / 1.029 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.068e-05/1.044, allocations: 115.1 kB / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.21e-07/1.044, allocations: 0 / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003988/1.045, allocations: 39.75 kB / 1.029 GB, free: 10.55 MB / 0.6511 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.0005405/1.045, allocations: 208.5 kB / 1.029 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001997/1.045, allocations: 78.05 kB / 1.029 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/1.045, allocations: 0 / 1.029 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.516e-05/1.045, allocations: 38.31 kB / 1.029 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/1.046, allocations: 26.11 kB / 1.029 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/1.046, allocations: 160.1 kB / 1.03 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/1.046, allocations: 0.7197 MB / 1.03 GB, free: 9.359 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.068e-05/1.047, allocations: 32.33 kB / 1.03 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/1.047, allocations: 15.44 kB / 1.03 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of SimCode: time 4.41e-07/1.047, allocations: 0 / 1.03 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of Templates: time 0.004895/1.052, allocations: 1.623 MB / 1.032 GB, free: 7.707 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Files_Examples_Printer.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches