Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.585/1.585, allocations: 289.8 MB / 297.1 MB, free: 6.727 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.001323/0.001323, allocations: 181.3 kB / 366.3 MB, free: 2.008 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.618/1.618, allocations: 205.1 MB / 0.6256 GB, free: 7.461 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.001003/0.001004, allocations: 89.56 kB / 0.7396 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2868/0.2879, allocations: 122.4 MB / 0.8591 GB, free: 13.53 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7556/1.043, allocations: 116.3 MB / 0.9726 GB, free: 76.26 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/1.242, allocations: 139.9 MB / 1.109 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/1.242, allocations: 87.94 kB / 1.109 GB, free: 10.46 MB / 0.7136 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.01108/1.254, allocations: 3.181 MB / 1.112 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/1.254, allocations: 15.98 kB / 1.113 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.747e-05/1.254, allocations: 15.81 kB / 1.113 GB, free: 7.238 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/1.254, allocations: 210.8 kB / 1.113 GB, free: 6.992 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/1.254, allocations: 8 kB / 1.113 GB, free: 6.984 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/1.254, allocations: 4 kB / 1.113 GB, free: 6.98 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001208/1.254, allocations: 39.92 kB / 1.113 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/1.254, allocations: 96.31 kB / 1.113 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/1.254, allocations: 0 / 1.113 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/1.254, allocations: 0 / 1.113 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/1.254, allocations: 4 kB / 1.113 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/1.255, allocations: 457.2 kB / 1.113 GB, free: 6.344 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/1.255, allocations: 65.19 kB / 1.113 GB, free: 6.262 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.911e-05/1.255, allocations: 31.53 kB / 1.113 GB, free: 6.227 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/1.255, allocations: 4 kB / 1.113 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/1.256, allocations: 117 kB / 1.114 GB, free: 6.09 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.893e-06/1.256, allocations: 0 / 1.114 GB, free: 6.09 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002724/1.256, allocations: 106.6 kB / 1.114 GB, free: 5.98 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/1.256, allocations: 77.11 kB / 1.114 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/1.256, allocations: 134 kB / 1.114 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/1.256, allocations: 37.69 kB / 1.114 GB, free: 5.707 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.764e-05/1.256, allocations: 100.4 kB / 1.114 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.528e-05/1.256, allocations: 23.66 kB / 1.114 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/1.256, allocations: 4 kB / 1.114 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001512/1.256, allocations: 323.7 kB / 1.114 GB, free: 5.25 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.636e-05/1.257, allocations: 19.94 kB / 1.114 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/1.257, allocations: 98.3 kB / 1.114 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.171e-05/1.257, allocations: 35.92 kB / 1.114 GB, free: 5.062 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/1.257, allocations: 3.906 kB / 1.114 GB, free: 5.059 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002053/1.257, allocations: 109.5 kB / 1.115 GB, free: 4.945 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/1.257, allocations: 7.906 kB / 1.115 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/1.257, allocations: 0 / 1.115 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/1.257, allocations: 4 kB / 1.115 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/1.257, allocations: 29.61 kB / 1.115 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/1.257, allocations: 4 kB / 1.115 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/1.257, allocations: 19.92 kB / 1.115 GB, free: 4.883 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/1.257, allocations: 8 kB / 1.115 GB, free: 4.875 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 0.0001081/1.257, allocations: 113 kB / 1.115 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/1.257, allocations: 15.81 kB / 1.115 GB, free: 4.742 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.038e-05/1.258, allocations: 29.33 kB / 1.115 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/1.258, allocations: 0 / 1.115 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/1.258, allocations: 0 / 1.115 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/1.258, allocations: 0 / 1.115 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/1.258, allocations: 470.6 kB / 1.115 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/1.258, allocations: 1.5 kB / 1.115 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/1.258, allocations: 23.92 kB / 1.115 GB, free: 4.176 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/1.258, allocations: 0 / 1.115 GB, free: 4.176 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/1.258, allocations: 4 kB / 1.115 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/1.258, allocations: 0.6562 kB / 1.115 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/1.258, allocations: 0 / 1.115 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000298/1.259, allocations: 284.3 kB / 1.116 GB, free: 3.871 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005052/1.259, allocations: 0.6575 MB / 1.116 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.546e-05/1.259, allocations: 85.02 kB / 1.116 GB, free: 3.086 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/1.259, allocations: 7.906 kB / 1.116 GB, free: 3.078 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/1.259, allocations: 29.28 kB / 1.116 GB, free: 3.051 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/1.26, allocations: 11.98 kB / 1.116 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.325e-05/1.26, allocations: 8.141 kB / 1.116 GB, free: 3.031 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.925e-05/1.26, allocations: 115.2 kB / 1.116 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001097/1.261, allocations: 45.02 kB / 1.116 GB, free: 2.875 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.0005021/1.261, allocations: 199.8 kB / 1.117 GB, free: 2.723 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002036/1.262, allocations: 63.92 kB / 1.117 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.262, allocations: 0.5625 kB / 1.117 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.46e-05/1.262, allocations: 39.94 kB / 1.117 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/1.262, allocations: 15.89 kB / 1.117 GB, free: 2.605 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005609/1.262, allocations: 164.2 kB / 1.117 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/1.263, allocations: 0.7355 MB / 1.118 GB, free: 1.656 MB / 0.7136 GB Notification: Performance of SimCode: time 6.11e-07/1.263, allocations: 8 kB / 1.118 GB, free: 1.648 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)