Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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 loadModel(Buildings): time 4.27/4.27, allocations: 433 MB / 440.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5904/4.861, allocations: 104.3 MB / 0.5319 GB, free: 13.05 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/5.111, allocations: 98.73 MB / 0.6283 GB, free: 9.789 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2486/5.36, allocations: 130.5 MB / 0.7558 GB, free: 7.082 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/5.36, allocations: 79.59 kB / 0.7558 GB, free: 7.008 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.07543/5.436, allocations: 13.19 MB / 0.7687 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.747e-05/5.436, allocations: 12.22 kB / 0.7687 GB, free: 9.727 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006396/5.436, allocations: 82.97 kB / 0.7688 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002541/5.439, allocations: 0.5329 MB / 0.7693 GB, free: 9.07 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.845e-05/5.439, allocations: 20 kB / 0.7693 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003548/5.44, allocations: 36 kB / 0.7694 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00245/5.442, allocations: 398.5 kB / 0.7698 GB, free: 8.625 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/5.445, allocations: 0.5287 MB / 0.7703 GB, free: 8.066 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.147e-05/5.445, allocations: 0 / 0.7703 GB, free: 8.066 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/5.445, allocations: 0 / 0.7703 GB, free: 8.066 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/5.445, allocations: 16 kB / 0.7703 GB, free: 8.051 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009359/5.454, allocations: 2.011 MB / 0.7722 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/5.456, allocations: 318.6 kB / 0.7726 GB, free: 5.668 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009418/5.457, allocations: 198.5 kB / 0.7727 GB, free: 5.469 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.375e-05/5.457, allocations: 8.438 kB / 0.7728 GB, free: 5.461 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000971/5.458, allocations: 228.6 kB / 0.773 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=50): time 6.482e-06/5.458, allocations: 0 / 0.773 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of matching and sorting (n=50): time 0.001928/5.46, allocations: 398.5 kB / 0.7733 GB, free: 4.828 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/5.46, allocations: 162.7 kB / 0.7735 GB, free: 4.633 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/5.462, allocations: 349.1 kB / 0.7738 GB, free: 4.289 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0002047/5.462, allocations: 25.7 kB / 0.7739 GB, free: 4.258 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004107/5.462, allocations: 261 kB / 0.7741 GB, free: 4 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004103/5.463, allocations: 165.6 kB / 0.7743 GB, free: 3.836 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/5.463, allocations: 0 / 0.7743 GB, free: 3.836 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002995/5.463, allocations: 358.8 kB / 0.7746 GB, free: 3.477 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007612/5.464, allocations: 145.3 kB / 0.7747 GB, free: 3.336 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009152/5.465, allocations: 251.1 kB / 0.775 GB, free: 3.055 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009034/5.466, allocations: 173.4 kB / 0.7752 GB, free: 2.887 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/5.466, allocations: 7.906 kB / 0.7752 GB, free: 2.879 MB / 0.6511 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002099/5.468, allocations: 467.8 kB / 0.7756 GB, free: 2.414 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003754/5.468, allocations: 0.6065 MB / 0.7762 GB, free: 1.762 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/5.468, allocations: 4 kB / 0.7762 GB, free: 1.758 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.378e-05/5.468, allocations: 4 kB / 0.7762 GB, free: 1.754 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/5.47, allocations: 131.8 kB / 0.7763 GB, free: 1.625 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/5.47, allocations: 4 kB / 0.7763 GB, free: 1.621 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/5.472, allocations: 79.55 kB / 0.7764 GB, free: 1.543 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/5.472, allocations: 20 kB / 0.7764 GB, free: 1.523 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/5.472, allocations: 0 / 0.7764 GB, free: 1.523 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001783/5.474, allocations: 362.8 kB / 0.7768 GB, free: 1.168 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/5.474, allocations: 0 / 0.7768 GB, free: 1.168 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/5.474, allocations: 4 kB / 0.7768 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/5.475, allocations: 120 kB / 0.7769 GB, free: 1.047 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/5.475, allocations: 4 kB / 0.7769 GB, free: 1.043 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/5.476, allocations: 59.56 kB / 0.777 GB, free: 0.9844 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/5.477, allocations: 16 kB / 0.777 GB, free: 0.9688 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0004014/5.477, allocations: 117.9 kB / 0.7771 GB, free: 0.8477 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/5.478, allocations: 55.34 kB / 0.7771 GB, free: 0.793 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007297/5.478, allocations: 57.19 kB / 0.7772 GB, free: 0.7383 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.329e-05/5.478, allocations: 8 kB / 0.7772 GB, free: 0.7305 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/5.479, allocations: 4 kB / 0.7772 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.679e-05/5.479, allocations: 3.984 kB / 0.7772 GB, free: 0.7227 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3137/5.792, allocations: 1.102 MB / 0.7783 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/5.792, allocations: 0 / 0.7783 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/5.793, allocations: 114.2 kB / 0.7784 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.131e-05/5.793, allocations: 1.875 kB / 0.7784 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/5.794, allocations: 3.719 kB / 0.7784 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/5.794, allocations: 6.844 kB / 0.7784 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/5.794, allocations: 3.281 kB / 0.7784 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001538/5.795, allocations: 0.7153 MB / 0.7791 GB, free: 219.6 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00244/5.798, allocations: 1.307 MB / 0.7804 GB, free: 219.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/5.798, allocations: 178.2 kB / 0.7806 GB, free: 219 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/5.798, allocations: 5.75 kB / 0.7806 GB, free: 219 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007583/5.799, allocations: 45.41 kB / 0.7806 GB, free: 219 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/5.799, allocations: 37.86 kB / 0.7806 GB, free: 219 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/5.799, allocations: 16.09 kB / 0.7807 GB, free: 219 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0004367/5.8, allocations: 267.3 kB / 0.7809 GB, free: 218.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00255/5.802, allocations: 248.3 kB / 0.7811 GB, free: 218.9 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0002143/5.802, allocations: 117.1 kB / 0.7813 GB, free: 218.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00203/5.804, allocations: 0.659 MB / 0.7819 GB, free: 218.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/5.804, allocations: 0 / 0.7819 GB, free: 218.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007029/5.805, allocations: 208.9 kB / 0.7821 GB, free: 218.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/5.806, allocations: 115.4 kB / 0.7822 GB, free: 218.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005323/5.812, allocations: 1.283 MB / 0.7835 GB, free: 218.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009653/5.813, allocations: 0.9594 MB / 0.7844 GB, free: 217.8 MB / 0.6511 GB Notification: Performance of SimCode: time 2.324e-06/5.813, allocations: 5.031 kB / 0.7844 GB, free: 217.8 MB / 0.6511 GB