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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.196/1.196, allocations: 249.4 MB / 256.7 MB, free: 6.984 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.001054/0.001054, allocations: 177.3 kB / 316 MB, free: 3.594 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.085/1.085, allocations: 205.2 MB / 0.5667 GB, free: 15.66 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.000833/0.000833, allocations: 82.78 kB / 0.671 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.249e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.149, allocations: 106.3 MB / 0.8846 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4089/0.5579, allocations: 133.7 MB / 1.015 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.5581, allocations: 75.95 kB / 1.015 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.007845/0.566, allocations: 2.659 MB / 1.018 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.566, allocations: 0 / 1.018 GB, free: 2.887 MB / 0.6355 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.0006156/0.5666, allocations: 0.5251 MB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.5666, allocations: 8.781 kB / 1.018 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.155e-05/0.5667, allocations: 19.8 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.5669, allocations: 225.1 kB / 1.019 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.5669, allocations: 4 kB / 1.019 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.567, allocations: 7.938 kB / 1.019 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.217e-05/0.5671, allocations: 29.56 kB / 1.019 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.5672, allocations: 97.56 kB / 1.019 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.5672, allocations: 3.984 kB / 1.019 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.5673, allocations: 3.938 kB / 1.019 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5673, allocations: 7.906 kB / 1.019 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005674/0.5678, allocations: 449.2 kB / 1.019 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.568, allocations: 63.16 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.799e-05/0.568, allocations: 32.14 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.568, allocations: 3.812 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.5682, allocations: 121.4 kB / 1.019 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.5682, allocations: 3.938 kB / 1.019 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12): time 0.0002195/0.5685, allocations: 89.95 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.5685, allocations: 88.33 kB / 1.02 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.5686, allocations: 151.3 kB / 1.02 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.5687, allocations: 25.7 kB / 1.02 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.5687, allocations: 103.2 kB / 1.02 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.5688, allocations: 26.98 kB / 1.02 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.5688, allocations: 0 / 1.02 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.5689, allocations: 325.8 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.331e-05/0.5689, allocations: 14.31 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/0.569, allocations: 99.69 kB / 1.02 GB, free: 296 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.262e-05/0.5691, allocations: 37.28 kB / 1.02 GB, free: 268 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.5691, allocations: 3.938 kB / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000179/0.5693, allocations: 112.2 kB / 1.02 GB, free: 156 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.5693, allocations: 4 kB / 1.02 GB, free: 152 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.5693, allocations: 4 kB / 1.02 GB, free: 148 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.5693, allocations: 4.281 kB / 1.02 GB, free: 144 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.5694, allocations: 27.48 kB / 1.02 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.5694, allocations: 4 kB / 1.02 GB, free: 116 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.5696, allocations: 19.92 kB / 1.02 GB, free: 96 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.5696, allocations: 8 kB / 1.02 GB, free: 88 kB / 0.6355 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.535e-05/0.5697, allocations: 131.9 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.5697, allocations: 15.81 kB / 1.021 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.5698, allocations: 13.03 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.5698, allocations: 0 / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5698, allocations: 7.984 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.5698, allocations: 0 / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.5702, allocations: 478.3 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.5702, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.8e-05/0.5703, allocations: 15.98 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.5703, allocations: 4 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.5704, allocations: 0 / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.5704, allocations: 0 / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5704, allocations: 4 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000214/0.5706, allocations: 295.9 kB / 1.021 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.171e-05/0.5706, allocations: 92.91 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.5707, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.5709, allocations: 19.98 kB / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.5709, allocations: 7.984 kB / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.571, allocations: 15.17 kB / 1.022 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.409e-05/0.571, allocations: 110 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003076/0.5713, allocations: 39.69 kB / 1.022 GB, free: 14.84 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.0003614/0.5717, allocations: 188.4 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.5719, allocations: 67.73 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5719, allocations: 4 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.756e-05/0.572, allocations: 31.06 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002421/0.5722, allocations: 18.83 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003433/0.5726, allocations: 158.5 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.5729, allocations: 0.7339 MB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.5729, allocations: 0 / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of Templates: time 0.004135/0.577, allocations: 1.734 MB / 1.025 GB, free: 11.95 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