Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [: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 8.0.1-maint.8.0.x/package.mo): time 1.414/1.414, allocations: 285.5 MB / 292.8 MB, free: 10.47 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 181.3 kB / 361.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.1 MB / 0.6195 GB, free: 10.32 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007999/0.0007999, allocations: 97.34 kB / 0.7326 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2045/0.2053, allocations: 121.4 MB / 0.8511 GB, free: 2.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4989/0.7042, allocations: 115.3 MB / 0.9638 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.152/0.8562, allocations: 139 MB / 1.099 GB, free: 1.027 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.8565, allocations: 80.75 kB / 1.1 GB, free: 0.9492 MB / 0.698 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.009173/0.8656, allocations: 3.183 MB / 1.103 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.8657, allocations: 8.5 kB / 1.103 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.88e-05/0.8658, allocations: 15.81 kB / 1.103 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.866, allocations: 226.7 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.8661, allocations: 0 / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.8661, allocations: 9.312 kB / 1.103 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001003/0.8662, allocations: 35.98 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.8664, allocations: 95.38 kB / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.8664, allocations: 0 / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.8664, allocations: 8 kB / 1.103 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.8664, allocations: 0 / 1.103 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006194/0.867, allocations: 453.2 kB / 1.103 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.719e-05/0.8671, allocations: 65.2 kB / 1.104 GB, free: 12.77 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.848e-05/0.8672, allocations: 33.78 kB / 1.104 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.8672, allocations: 0 / 1.104 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.8674, allocations: 121.1 kB / 1.104 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 2.294e-06/0.8674, allocations: 0.5156 kB / 1.104 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002163/0.8676, allocations: 98.64 kB / 1.104 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.8677, allocations: 85.05 kB / 1.104 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.8678, allocations: 133.5 kB / 1.104 GB, free: 12.26 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.8678, allocations: 29.69 kB / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.8679, allocations: 100.3 kB / 1.104 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.8679, allocations: 23.83 kB / 1.104 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.8679, allocations: 3.938 kB / 1.104 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.868, allocations: 326.8 kB / 1.104 GB, free: 11.76 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.8681, allocations: 16 kB / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.805e-05/0.8682, allocations: 94.3 kB / 1.105 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.512e-05/0.8682, allocations: 31.92 kB / 1.105 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.8683, allocations: 3.906 kB / 1.105 GB, free: 11.58 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000174/0.8684, allocations: 116.2 kB / 1.105 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.8685, allocations: 10.53 kB / 1.105 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.8685, allocations: 4 kB / 1.105 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.8685, allocations: 4 kB / 1.105 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.8686, allocations: 32.2 kB / 1.105 GB, free: 11.42 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.8686, allocations: 3.984 kB / 1.105 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.8687, allocations: 15.94 kB / 1.105 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.8688, allocations: 8 kB / 1.105 GB, free: 11.39 MB / 0.7136 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 8.009e-05/0.8689, allocations: 117.7 kB / 1.105 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.8689, allocations: 19.81 kB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.8689, allocations: 17.39 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.869, allocations: 4 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.869, allocations: 0.7031 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.869, allocations: 0 / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.8694, allocations: 466.8 kB / 1.105 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.8695, allocations: 7.938 kB / 1.105 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.141e-05/0.8696, allocations: 19.98 kB / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.8696, allocations: 0 / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.8696, allocations: 0 / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.8696, allocations: 0 / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.8696, allocations: 5.562 kB / 1.105 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002064/0.8698, allocations: 287.8 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002978/0.8701, allocations: 0.6529 MB / 1.106 GB, free: 9.715 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.8702, allocations: 89.81 kB / 1.106 GB, free: 9.609 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.8702, allocations: 3.906 kB / 1.106 GB, free: 9.605 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.8704, allocations: 23.97 kB / 1.106 GB, free: 9.582 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.8705, allocations: 15.98 kB / 1.106 GB, free: 9.566 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.8705, allocations: 8 kB / 1.106 GB, free: 9.559 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.291e-05/0.8706, allocations: 117 kB / 1.107 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009564/0.8715, allocations: 47.92 kB / 1.107 GB, free: 9.398 MB / 0.7136 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.0003713/0.8719, allocations: 198.6 kB / 1.107 GB, free: 9.246 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001552/0.8721, allocations: 63.92 kB / 1.107 GB, free: 9.184 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.8721, allocations: 0 / 1.107 GB, free: 9.184 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.11e-05/0.8722, allocations: 36.69 kB / 1.107 GB, free: 9.148 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.8724, allocations: 21.11 kB / 1.107 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003718/0.8728, allocations: 169 kB / 1.107 GB, free: 8.938 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002794/0.8731, allocations: 0.7317 MB / 1.108 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.8731, allocations: 0 / 1.108 GB, free: 8.18 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)