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") [: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 9.1.1-maint.9.1.x/package.mo): time 1.944/1.944, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.001033/0.001033, allocations: 188.2 kB / 487 MB, free: 5.344 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.304/1.304, allocations: 221.3 MB / 0.7819 GB, free: 1.312 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 102.1 kB / 0.9213 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.282e-06/6.302e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.28, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.748/1.028, allocations: 150.2 MB / 1.352 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/1.028, allocations: 80.95 kB / 1.352 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.009222/1.038, allocations: 2.711 MB / 1.355 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.534e-05/1.038, allocations: 2.844 kB / 1.355 GB, free: 15.93 MB / 0.8073 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.0006424/1.038, allocations: 0.5197 MB / 1.355 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/1.038, allocations: 10.58 kB / 1.355 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.267e-05/1.038, allocations: 16.38 kB / 1.355 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/1.039, allocations: 217.6 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/1.039, allocations: 1.688 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/1.039, allocations: 11.61 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001164/1.039, allocations: 32.08 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/1.039, allocations: 93.47 kB / 1.355 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/1.039, allocations: 3.938 kB / 1.355 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/1.039, allocations: 1.156 kB / 1.355 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/1.039, allocations: 2.25 kB / 1.355 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005791/1.04, allocations: 457.5 kB / 1.356 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.018e-05/1.04, allocations: 66.5 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.171e-05/1.04, allocations: 27.91 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/1.04, allocations: 3.812 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/1.04, allocations: 120.4 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/1.04, allocations: 0 / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0002364/1.04, allocations: 108.3 kB / 1.356 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/1.04, allocations: 80.81 kB / 1.356 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/1.04, allocations: 142.3 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/1.04, allocations: 28.02 kB / 1.356 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/1.041, allocations: 105.3 kB / 1.357 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/1.041, allocations: 25.22 kB / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/1.041, allocations: 0 / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.48e-05/1.041, allocations: 327 kB / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/1.041, allocations: 18.62 kB / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.229e-05/1.041, allocations: 101.5 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.238e-05/1.041, allocations: 30.83 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/1.041, allocations: 8.625 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002035/1.041, allocations: 108.1 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/1.041, allocations: 9.547 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/1.041, allocations: 2.188 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/1.041, allocations: 3.031 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/1.041, allocations: 27.92 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/1.041, allocations: 3.641 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/1.041, allocations: 17.47 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/1.041, allocations: 6 kB / 1.357 GB, free: 13.84 MB / 0.8073 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 7.914e-05/1.042, allocations: 124 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/1.042, allocations: 20.44 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.148e-05/1.042, allocations: 21.83 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/1.042, allocations: 1.938 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/1.042, allocations: 0.8125 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/1.042, allocations: 0.7812 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/1.042, allocations: 471.4 kB / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/1.042, allocations: 5.156 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.718e-05/1.042, allocations: 16.25 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/1.042, allocations: 1.531 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/1.042, allocations: 2.484 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.042, allocations: 1.656 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.042, allocations: 0.6562 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002108/1.042, allocations: 290.6 kB / 1.358 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/1.042, allocations: 89.14 kB / 1.358 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/1.043, allocations: 2.109 kB / 1.358 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/1.043, allocations: 26.45 kB / 1.358 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/1.043, allocations: 10.7 kB / 1.358 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.842e-05/1.043, allocations: 10.69 kB / 1.358 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7.38e-05/1.043, allocations: 115.2 kB / 1.358 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003786/1.043, allocations: 42.91 kB / 1.358 GB, free: 12.92 MB / 0.8073 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.0004248/1.044, allocations: 204.2 kB / 1.359 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001957/1.044, allocations: 65.64 kB / 1.359 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/1.044, allocations: 0 / 1.359 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.067e-05/1.044, allocations: 35.94 kB / 1.359 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/1.044, allocations: 13.92 kB / 1.359 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004399/1.045, allocations: 164.7 kB / 1.359 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004344/1.045, allocations: 0.7337 MB / 1.36 GB, free: 27.97 MB / 0.823 GB Notification: Performance of SimCode: time 3.91e-07/1.045, allocations: 0 / 1.36 GB, free: 27.97 MB / 0.823 GB Notification: Performance of Templates: time 0.006088/1.051, allocations: 1.745 MB / 1.361 GB, free: 27.8 MB / 0.823 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