Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",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.385/1.385, allocations: 289.8 MB / 297 MB, free: 6.645 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.001005/0.001005, allocations: 169.3 kB / 366.3 MB, free: 1.961 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.091/1.091, allocations: 205.1 MB / 0.6256 GB, free: 5.797 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.000837/0.000837, allocations: 86.56 kB / 0.7395 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2073/0.2082, allocations: 122.4 MB / 0.8591 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4529/0.661, allocations: 116.3 MB / 0.9726 GB, free: 68.41 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.8158, allocations: 144.9 MB / 1.114 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.8161, allocations: 84.67 kB / 1.114 GB, free: 3.531 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.01804/0.8341, allocations: 7.176 MB / 1.121 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.8342, allocations: 8 kB / 1.121 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.8343, allocations: 47.44 kB / 1.121 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000544/0.8348, allocations: 379.3 kB / 1.122 GB, free: 11.84 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.8349, allocations: 8 kB / 1.122 GB, free: 11.83 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.373e-05/0.8349, allocations: 20.66 kB / 1.122 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003528/0.8353, allocations: 193.4 kB / 1.122 GB, free: 11.62 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004191/0.8357, allocations: 292.9 kB / 1.122 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.8357, allocations: 3.938 kB / 1.122 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.8358, allocations: 0 / 1.122 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.8358, allocations: 12 kB / 1.122 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.8372, allocations: 1.193 MB / 1.123 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.8376, allocations: 151.4 kB / 1.123 GB, free: 9.871 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.8377, allocations: 89.27 kB / 1.124 GB, free: 9.781 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.8378, allocations: 8.094 kB / 1.124 GB, free: 9.773 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.8378, allocations: 38.75 kB / 1.124 GB, free: 9.727 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.8378, allocations: 0 / 1.124 GB, free: 9.727 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22): time 0.0003804/0.8382, allocations: 204.9 kB / 1.124 GB, free: 9.523 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.8383, allocations: 158.2 kB / 1.124 GB, free: 9.332 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.8385, allocations: 262.1 kB / 1.124 GB, free: 9.07 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.8386, allocations: 25.7 kB / 1.124 GB, free: 9.039 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.439e-05/0.8387, allocations: 180.9 kB / 1.124 GB, free: 8.859 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.8387, allocations: 74.86 kB / 1.124 GB, free: 8.785 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/0.8387, allocations: 0 / 1.124 GB, free: 8.785 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.8389, allocations: 346.8 kB / 1.125 GB, free: 8.438 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.839, allocations: 67.94 kB / 1.125 GB, free: 8.371 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.8392, allocations: 131.7 kB / 1.125 GB, free: 8.215 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.8393, allocations: 83.81 kB / 1.125 GB, free: 8.133 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.8393, allocations: 0 / 1.125 GB, free: 8.133 MB / 0.7292 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003532/0.8396, allocations: 237.1 kB / 1.125 GB, free: 7.895 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.8397, allocations: 5.312 kB / 1.125 GB, free: 7.891 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.8397, allocations: 4 kB / 1.125 GB, free: 7.887 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.8397, allocations: 4.125 kB / 1.125 GB, free: 7.883 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.8399, allocations: 55.91 kB / 1.125 GB, free: 7.828 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.84, allocations: 0 / 1.125 GB, free: 7.828 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.8402, allocations: 39.83 kB / 1.125 GB, free: 7.789 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.8402, allocations: 15.98 kB / 1.125 GB, free: 7.773 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.181e-05/0.8403, allocations: 115.2 kB / 1.126 GB, free: 7.656 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.111e-05/0.8404, allocations: 31.62 kB / 1.126 GB, free: 7.625 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.985e-05/0.8405, allocations: 35.16 kB / 1.126 GB, free: 7.59 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.8405, allocations: 8 kB / 1.126 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.8405, allocations: 0 / 1.126 GB, free: 7.582 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.8405, allocations: 3.938 kB / 1.126 GB, free: 7.578 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003759/0.8409, allocations: 361.8 kB / 1.126 GB, free: 7.188 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.8409, allocations: 1.781 kB / 1.126 GB, free: 7.188 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.8411, allocations: 43.98 kB / 1.126 GB, free: 7.145 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.8412, allocations: 7.984 kB / 1.126 GB, free: 7.137 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.8412, allocations: 0 / 1.126 GB, free: 7.137 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.8412, allocations: 4 kB / 1.126 GB, free: 7.133 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.8412, allocations: 3.938 kB / 1.126 GB, free: 7.129 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005149/0.8417, allocations: 405.2 kB / 1.126 GB, free: 6.719 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007562/0.8425, allocations: 0.8711 MB / 1.127 GB, free: 5.832 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.8426, allocations: 132.8 kB / 1.127 GB, free: 5.684 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.8427, allocations: 4 kB / 1.127 GB, free: 5.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.8429, allocations: 27.97 kB / 1.127 GB, free: 5.652 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.843, allocations: 28 kB / 1.127 GB, free: 5.625 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.843, allocations: 4 kB / 1.127 GB, free: 5.621 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001997/0.8432, allocations: 212.5 kB / 1.128 GB, free: 5.414 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009698/0.8442, allocations: 67.69 kB / 1.128 GB, free: 5.348 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.000129/0.8443, allocations: 99.25 kB / 1.128 GB, free: 5.242 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003086/0.8446, allocations: 173.2 kB / 1.128 GB, free: 5.074 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8446, allocations: 4.25 kB / 1.128 GB, free: 5.07 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.8448, allocations: 100.2 kB / 1.128 GB, free: 4.973 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.8452, allocations: 67.06 kB / 1.128 GB, free: 4.91 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.8463, allocations: 0.494 MB / 1.129 GB, free: 4.391 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.8467, allocations: 0.8336 MB / 1.129 GB, free: 3.527 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/0.8467, allocations: 0 / 1.129 GB, free: 3.527 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)