Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.511/2.511, allocations: 248.6 MB / 255.9 MB, free: 7.109 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.001698/0.001697, allocations: 185.3 kB / 315.1 MB, free: 4.215 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.995/1.995, allocations: 205.1 MB / 0.5658 GB, free: 308 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001354/0.001353, allocations: 83.41 kB / 0.67 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4782/0.4796, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.6908, allocations: 106.2 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6975/1.388, allocations: 138.5 MB / 1.019 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/1.389, allocations: 77.77 kB / 1.019 GB, free: 1.398 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.03226/1.421, allocations: 7.233 MB / 1.026 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.154e-05/1.421, allocations: 8 kB / 1.026 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003078/1.421, allocations: 47.44 kB / 1.026 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/1.423, allocations: 375.1 kB / 1.026 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/1.423, allocations: 11 kB / 1.026 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/1.423, allocations: 16 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006734/1.424, allocations: 186.1 kB / 1.026 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007913/1.424, allocations: 301.7 kB / 1.027 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/1.424, allocations: 0 / 1.027 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/1.425, allocations: 0 / 1.027 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/1.425, allocations: 8 kB / 1.027 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003002/1.428, allocations: 1.189 MB / 1.028 GB, free: 9.492 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005629/1.428, allocations: 151.7 kB / 1.028 GB, free: 9.391 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/1.428, allocations: 92.89 kB / 1.028 GB, free: 9.332 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/1.429, allocations: 7.625 kB / 1.028 GB, free: 9.328 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/1.429, allocations: 34.69 kB / 1.028 GB, free: 9.285 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=22): time 3.957e-06/1.429, allocations: 3.938 kB / 1.028 GB, free: 9.281 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22): time 0.0007393/1.429, allocations: 201.1 kB / 1.028 GB, free: 9.133 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/1.43, allocations: 162.2 kB / 1.029 GB, free: 8.938 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008598/1.43, allocations: 267.2 kB / 1.029 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.805e-05/1.431, allocations: 33.2 kB / 1.029 GB, free: 8.691 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/1.431, allocations: 176.5 kB / 1.029 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/1.431, allocations: 72.55 kB / 1.029 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.875e-05/1.431, allocations: 0 / 1.029 GB, free: 8.469 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001664/1.431, allocations: 343.2 kB / 1.029 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/1.431, allocations: 66.84 kB / 1.029 GB, free: 8.102 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/1.432, allocations: 141.4 kB / 1.03 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/1.432, allocations: 78.12 kB / 1.03 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.432, allocations: 0 / 1.03 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007345/1.433, allocations: 234.8 kB / 1.03 GB, free: 7.75 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/1.433, allocations: 8.125 kB / 1.03 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/1.433, allocations: 0 / 1.03 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/1.433, allocations: 7.906 kB / 1.03 GB, free: 7.734 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005441/1.433, allocations: 63.84 kB / 1.03 GB, free: 7.672 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/1.433, allocations: 0 / 1.03 GB, free: 7.672 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004872/1.434, allocations: 39.83 kB / 1.03 GB, free: 7.633 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.969e-05/1.434, allocations: 15.73 kB / 1.03 GB, free: 7.621 MB / 0.6511 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 0.000163/1.434, allocations: 107.2 kB / 1.03 GB, free: 7.512 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/1.434, allocations: 39.53 kB / 1.03 GB, free: 7.473 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001639/1.434, allocations: 38.91 kB / 1.03 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/1.434, allocations: 0 / 1.03 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.434, allocations: 0 / 1.03 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/1.434, allocations: 0 / 1.03 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/1.435, allocations: 362.2 kB / 1.031 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/1.435, allocations: 0 / 1.031 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/1.436, allocations: 46.92 kB / 1.031 GB, free: 7.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.888e-06/1.436, allocations: 7.984 kB / 1.031 GB, free: 7.082 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/1.436, allocations: 4 kB / 1.031 GB, free: 7.078 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/1.436, allocations: 0 / 1.031 GB, free: 7.078 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.436, allocations: 0 / 1.031 GB, free: 7.078 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009195/1.437, allocations: 399.5 kB / 1.031 GB, free: 6.773 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001261/1.438, allocations: 0.8885 MB / 1.032 GB, free: 6.02 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/1.438, allocations: 133.1 kB / 1.032 GB, free: 5.887 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.241e-05/1.438, allocations: 0 / 1.032 GB, free: 5.887 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004795/1.439, allocations: 35.94 kB / 1.032 GB, free: 5.852 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/1.439, allocations: 18.84 kB / 1.032 GB, free: 5.836 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/1.439, allocations: 7.188 kB / 1.032 GB, free: 5.832 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003578/1.439, allocations: 207.6 kB / 1.032 GB, free: 5.676 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001396/1.441, allocations: 67.69 kB / 1.032 GB, free: 5.609 MB / 0.6511 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.0002447/1.441, allocations: 104.1 kB / 1.032 GB, free: 5.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005955/1.442, allocations: 177.9 kB / 1.033 GB, free: 5.387 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.442, allocations: 0 / 1.033 GB, free: 5.387 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000256/1.442, allocations: 95.23 kB / 1.033 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008005/1.443, allocations: 65.89 kB / 1.033 GB, free: 5.281 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/1.445, allocations: 0.4976 MB / 1.033 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007052/1.446, allocations: 0.8374 MB / 1.034 GB, free: 3.934 MB / 0.6511 GB Notification: Performance of SimCode: time 1.142e-06/1.446, allocations: 0 / 1.034 GB, free: 3.934 MB / 0.6511 GB