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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.306/1.306, allocations: 249.4 MB / 256.7 MB, free: 7.098 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.0009584/0.0009582, allocations: 177.3 kB / 316 MB, free: 3.59 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.156/1.156, allocations: 205.1 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.0008806/0.0008805, allocations: 89.81 kB / 0.671 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3152/0.3162, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.4771, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4608/0.938, allocations: 133.7 MB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.9382, allocations: 82.33 kB / 1.015 GB, free: 4.891 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.008964/0.9472, allocations: 3.177 MB / 1.018 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.9472, allocations: 8 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.555e-05/0.9473, allocations: 15.81 kB / 1.018 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.9475, allocations: 220.7 kB / 1.019 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.9475, allocations: 4 kB / 1.019 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.9476, allocations: 4 kB / 1.019 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001009/0.9477, allocations: 38.61 kB / 1.019 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.9478, allocations: 103.4 kB / 1.019 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.882e-06/0.9479, allocations: 3.938 kB / 1.019 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.9479, allocations: 6.938 kB / 1.019 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.9479, allocations: 3.906 kB / 1.019 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005875/0.9485, allocations: 447.9 kB / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.4e-05/0.9486, allocations: 67.08 kB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.578e-05/0.9486, allocations: 28.41 kB / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.9487, allocations: 3.984 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.9488, allocations: 130.2 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.9489, allocations: 0 / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12): time 0.0002018/0.9491, allocations: 96 kB / 1.02 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.9491, allocations: 87.7 kB / 1.02 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.9493, allocations: 149 kB / 1.02 GB, free: 0.6836 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.9493, allocations: 29.7 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.9493, allocations: 96.28 kB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.9494, allocations: 23.31 kB / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/0.9494, allocations: 0 / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.513e-05/0.9495, allocations: 325.1 kB / 1.02 GB, free: 216 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.901e-05/0.9495, allocations: 23.55 kB / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.076e-05/0.9496, allocations: 95.8 kB / 1.02 GB, free: 84 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.271e-05/0.9497, allocations: 31.61 kB / 1.02 GB, free: 56 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.9497, allocations: 0 / 1.02 GB, free: 56 kB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001812/0.9499, allocations: 115.2 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.9499, allocations: 4.109 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.9499, allocations: 11.94 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.9499, allocations: 4.281 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.9501, allocations: 27.05 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.9501, allocations: 7.984 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.9502, allocations: 15.94 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.9502, allocations: 12 kB / 1.021 GB, free: 15.87 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 8.183e-05/0.9503, allocations: 120.9 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.9503, allocations: 15.81 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.9504, allocations: 17.33 kB / 1.021 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.9504, allocations: 4 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.9504, allocations: 0 / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.9504, allocations: 0 / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.9508, allocations: 472.4 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.9509, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.033e-05/0.9509, allocations: 23.86 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.951, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.951, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.951, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.951, allocations: 8 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002147/0.9512, allocations: 286.2 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003152/0.9515, allocations: 0.6514 MB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.346e-05/0.9516, allocations: 88.92 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.9516, allocations: 0 / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.9518, allocations: 27.97 kB / 1.022 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.9519, allocations: 11.48 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.9519, allocations: 8 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.884e-05/0.952, allocations: 109.7 kB / 1.022 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0009692/0.9529, allocations: 50.89 kB / 1.022 GB, free: 13.98 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.0003744/0.9533, allocations: 194.1 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001482/0.9535, allocations: 72.3 kB / 1.023 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.9535, allocations: 0.5625 kB / 1.023 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.466e-05/0.9536, allocations: 34.38 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.9538, allocations: 15.36 kB / 1.023 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003749/0.9542, allocations: 169.5 kB / 1.023 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.9545, allocations: 0.7418 MB / 1.024 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.9545, allocations: 0 / 1.024 GB, free: 12.78 MB / 0.6511 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)