Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.57/2.57, allocations: 248.6 MB / 255.9 MB, free: 7.176 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.001737/0.001736, allocations: 184.2 kB / 315.1 MB, free: 4.273 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.979/1.979, allocations: 205.2 MB / 0.5658 GB, free: 352 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.001303/0.001303, allocations: 95.27 kB / 0.67 GB, free: 5.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4735/0.4748, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.7178, allocations: 106.3 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7267/1.445, allocations: 134.9 MB / 1.015 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003738/1.445, allocations: 95.61 kB / 1.015 GB, free: 5.281 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.02311/1.468, allocations: 5.398 MB / 1.021 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/1.468, allocations: 15.98 kB / 1.021 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/1.468, allocations: 27.62 kB / 1.021 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/1.469, allocations: 419.3 kB / 1.021 GB, free: 312 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/1.469, allocations: 11.88 kB / 1.021 GB, free: 300 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/1.469, allocations: 4 kB / 1.021 GB, free: 296 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001454/1.47, allocations: 30.98 kB / 1.021 GB, free: 276 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/1.47, allocations: 60.12 kB / 1.021 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/1.47, allocations: 0 / 1.021 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/1.47, allocations: 0 / 1.021 GB, free: 220 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/1.47, allocations: 7.906 kB / 1.021 GB, free: 212 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/1.471, allocations: 485.5 kB / 1.022 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/1.471, allocations: 40.62 kB / 1.022 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.135e-05/1.471, allocations: 23.86 kB / 1.022 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.755e-05/1.471, allocations: 7.672 kB / 1.022 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/1.471, allocations: 30.56 kB / 1.022 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 2.204e-06/1.471, allocations: 0 / 1.022 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0002754/1.471, allocations: 80 kB / 1.022 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/1.472, allocations: 55.41 kB / 1.022 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/1.473, allocations: 484.1 kB / 1.022 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/1.473, allocations: 25.7 kB / 1.022 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/1.473, allocations: 129.5 kB / 1.022 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/1.473, allocations: 7.906 kB / 1.022 GB, free: 15 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-06/1.473, allocations: 0 / 1.022 GB, free: 15 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001824/1.473, allocations: 348.9 kB / 1.023 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.607e-05/1.473, allocations: 8 kB / 1.023 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.078e-05/1.473, allocations: 11.38 kB / 1.023 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.288e-05/1.473, allocations: 7.875 kB / 1.023 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/1.473, allocations: 112 / 1.023 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002086/1.473, allocations: 84.75 kB / 1.023 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/1.473, allocations: 8 kB / 1.023 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/1.473, allocations: 7.969 kB / 1.023 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/1.473, allocations: 0 / 1.023 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/1.474, allocations: 8 kB / 1.023 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/1.474, allocations: 0 / 1.023 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/1.474, allocations: 4 kB / 1.023 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/1.474, allocations: 0 / 1.023 GB, free: 14.54 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.247e-05/1.474, allocations: 108.9 kB / 1.023 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-05/1.474, allocations: 31.62 kB / 1.023 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/1.474, allocations: 90.19 kB / 1.023 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/1.474, allocations: 0 / 1.023 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/1.474, allocations: 0 / 1.023 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/1.474, allocations: 7.984 kB / 1.023 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004081/1.475, allocations: 279.8 kB / 1.023 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.475, allocations: 0 / 1.023 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.247e-05/1.475, allocations: 8 kB / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/1.475, allocations: 3.938 kB / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/1.475, allocations: 7.984 kB / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.475, allocations: 0 / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.475, allocations: 0 / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002456/1.475, allocations: 177.9 kB / 1.024 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003843/1.476, allocations: 0.5457 MB / 1.024 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/1.476, allocations: 140.2 kB / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.004e-05/1.476, allocations: 0 / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/1.476, allocations: 0 / 1.024 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/1.476, allocations: 7.984 kB / 1.024 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/1.476, allocations: 3.625 kB / 1.024 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0007425/1.477, allocations: 380.6 kB / 1.025 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001275/1.478, allocations: 47.08 kB / 1.025 GB, free: 12.82 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0008219/1.479, allocations: 267.5 kB / 1.025 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001577/1.479, allocations: 30.67 kB / 1.025 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/1.479, allocations: 0 / 1.025 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.549e-05/1.479, allocations: 14.81 kB / 1.025 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006241/1.48, allocations: 42.39 kB / 1.025 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/1.481, allocations: 401.1 kB / 1.025 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00069/1.482, allocations: 0.8171 MB / 1.026 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of SimCode: time 1.563e-06/1.482, allocations: 0 / 1.026 GB, free: 11.38 MB / 0.6511 GB