Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.LimPID.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.LimPID,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_Continuous_Examples_LimPID",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.168/2.168, allocations: 248.6 MB / 255.9 MB, free: 328 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001609/0.001609, allocations: 187 kB / 315.1 MB, free: 7.738 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.282/2.282, allocations: 205.1 MB / 0.5658 GB, free: 25.46 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.002377/0.002376, allocations: 86.45 kB / 0.67 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3438/0.3463, allocations: 112.4 MB / 0.7797 GB, free: 2.445 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5599/0.9062, allocations: 106.2 MB / 0.8835 GB, free: 77.25 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2552/1.162, allocations: 138.8 MB / 1.019 GB, free: 2.203 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/1.162, allocations: 79.95 kB / 1.019 GB, free: 2.125 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.08736/1.249, allocations: 17.47 MB / 1.036 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/1.249, allocations: 8 kB / 1.036 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003504/1.25, allocations: 94.88 kB / 1.036 GB, free: 468 kB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3162/1.566, allocations: 0.591 MB / 1.037 GB, free: 204.1 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/1.566, allocations: 84.98 kB / 1.037 GB, free: 204 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/1.566, allocations: 29.66 kB / 1.037 GB, free: 204 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001296/1.568, allocations: 344.2 kB / 1.037 GB, free: 204 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/1.569, allocations: 0.5059 MB / 1.038 GB, free: 203.9 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/1.569, allocations: 0 / 1.038 GB, free: 203.9 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/1.569, allocations: 3.5 kB / 1.038 GB, free: 203.9 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/1.569, allocations: 10.41 kB / 1.038 GB, free: 203.9 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/1.574, allocations: 2.102 MB / 1.04 GB, free: 203 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/1.576, allocations: 409.1 kB / 1.04 GB, free: 202.9 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004562/1.576, allocations: 165.9 kB / 1.04 GB, free: 202.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.855e-05/1.576, allocations: 12.72 kB / 1.04 GB, free: 202.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005664/1.577, allocations: 223.8 kB / 1.041 GB, free: 202.9 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=45): time 3.697e-06/1.577, allocations: 3.969 kB / 1.041 GB, free: 202.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=45): time 0.001169/1.578, allocations: 389.1 kB / 1.041 GB, free: 202.8 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/1.578, allocations: 194.8 kB / 1.041 GB, free: 202.6 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009206/1.579, allocations: 471.1 kB / 1.042 GB, free: 202.5 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001426/1.579, allocations: 25.7 kB / 1.042 GB, free: 202.4 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/1.579, allocations: 253.1 kB / 1.042 GB, free: 202.3 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/1.58, allocations: 150.3 kB / 1.042 GB, free: 202.2 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/1.58, allocations: 0 / 1.042 GB, free: 202.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.58, allocations: 379.4 kB / 1.042 GB, free: 201.9 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004171/1.58, allocations: 144.4 kB / 1.043 GB, free: 201.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000524/1.581, allocations: 266.9 kB / 1.043 GB, free: 201.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/1.581, allocations: 162.5 kB / 1.043 GB, free: 201.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/1.581, allocations: 0 / 1.043 GB, free: 201.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001555/1.583, allocations: 479.5 kB / 1.043 GB, free: 201.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000281/1.583, allocations: 0.963 MB / 1.044 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/1.583, allocations: 3.25 kB / 1.044 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.912e-05/1.583, allocations: 3.25 kB / 1.044 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/1.585, allocations: 125.7 kB / 1.044 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/1.585, allocations: 10.19 kB / 1.044 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/1.586, allocations: 77.16 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.095e-05/1.586, allocations: 22.81 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/1.586, allocations: 3.344 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00154/1.587, allocations: 368.9 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/1.587, allocations: 3.656 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/1.587, allocations: 3.969 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/1.588, allocations: 120.1 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/1.589, allocations: 3.5 kB / 1.045 GB, free: 200.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/1.59, allocations: 68.33 kB / 1.045 GB, free: 200.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.274e-05/1.59, allocations: 18.16 kB / 1.045 GB, free: 200.6 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0002489/1.59, allocations: 123.6 kB / 1.045 GB, free: 200.5 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/1.59, allocations: 74.34 kB / 1.045 GB, free: 200.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/1.59, allocations: 69.23 kB / 1.045 GB, free: 200.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/1.591, allocations: 7.406 kB / 1.045 GB, free: 200.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.629e-06/1.591, allocations: 0 / 1.045 GB, free: 200.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/1.591, allocations: 0 / 1.045 GB, free: 200.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/1.592, allocations: 0.579 MB / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/1.592, allocations: 0 / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/1.593, allocations: 109.8 kB / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/1.593, allocations: 7.25 kB / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.805e-05/1.593, allocations: 7 kB / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/1.593, allocations: 3.844 kB / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.593, allocations: 0 / 1.046 GB, free: 200.3 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00176/1.595, allocations: 0.6229 MB / 1.047 GB, free: 200.2 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002199/1.597, allocations: 1.207 MB / 1.048 GB, free: 199.7 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004423/1.597, allocations: 194.9 kB / 1.048 GB, free: 199.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/1.598, allocations: 10.75 kB / 1.048 GB, free: 199.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/1.599, allocations: 63.58 kB / 1.048 GB, free: 199.6 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/1.599, allocations: 30 kB / 1.048 GB, free: 199.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.765e-05/1.599, allocations: 15.12 kB / 1.048 GB, free: 199.6 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0006865/1.6, allocations: 366.2 kB / 1.049 GB, free: 199.5 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002828/1.603, allocations: 223.8 kB / 1.049 GB, free: 199.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003141/1.603, allocations: 109.6 kB / 1.049 GB, free: 199.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002073/1.605, allocations: 0.6606 MB / 1.049 GB, free: 199.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/1.605, allocations: 3.828 kB / 1.049 GB, free: 199.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004984/1.606, allocations: 184.7 kB / 1.05 GB, free: 199.3 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/1.607, allocations: 152.9 kB / 1.05 GB, free: 199.3 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/1.611, allocations: 0.8868 MB / 1.051 GB, free: 199 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009186/1.612, allocations: 0.997 MB / 1.052 GB, free: 198.3 MB / 0.6823 GB Notification: Performance of SimCode: time 1.523e-06/1.612, allocations: 2.281 kB / 1.052 GB, free: 198.3 MB / 0.6823 GB