Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.817/1.817, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001043, allocations: 180.5 kB / 487 MB, free: 5.391 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.141/1.141, allocations: 221.3 MB / 0.7819 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009269/0.0009268, allocations: 92.88 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4216/0.4225, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.6062, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5043/1.111, allocations: 152 MB / 1.354 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/1.111, allocations: 94.56 kB / 1.354 GB, free: 15.84 MB / 0.8073 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.01301/1.124, allocations: 5.579 MB / 1.359 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/1.124, allocations: 12.75 kB / 1.359 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.25e-05/1.124, allocations: 34.22 kB / 1.359 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/1.125, allocations: 426.8 kB / 1.36 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/1.125, allocations: 1.594 kB / 1.36 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/1.125, allocations: 3.344 kB / 1.36 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.595e-05/1.125, allocations: 33.23 kB / 1.36 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/1.125, allocations: 70.92 kB / 1.36 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/1.125, allocations: 0.5156 kB / 1.36 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/1.125, allocations: 1.281 kB / 1.36 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/1.125, allocations: 1.375 kB / 1.36 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/1.125, allocations: 481.2 kB / 1.36 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.634e-05/1.126, allocations: 41.88 kB / 1.36 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.727e-05/1.126, allocations: 17.03 kB / 1.36 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/1.126, allocations: 4.172 kB / 1.36 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.557e-05/1.126, allocations: 38.44 kB / 1.36 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/1.126, allocations: 0 / 1.36 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001717/1.126, allocations: 79.89 kB / 1.36 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.403e-05/1.126, allocations: 51.41 kB / 1.361 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/1.126, allocations: 487.1 kB / 1.361 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.384e-06/1.126, allocations: 26.22 kB / 1.361 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.189e-05/1.126, allocations: 132 kB / 1.361 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/1.126, allocations: 8.172 kB / 1.361 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/1.126, allocations: 0 / 1.361 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.703e-05/1.126, allocations: 343.1 kB / 1.361 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.108e-05/1.126, allocations: 8.141 kB / 1.361 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.524e-05/1.127, allocations: 9.062 kB / 1.362 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.462e-05/1.127, allocations: 9.109 kB / 1.362 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/1.127, allocations: 0.6094 kB / 1.362 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.585e-05/1.127, allocations: 81.23 kB / 1.362 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.176e-06/1.127, allocations: 8 kB / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/1.127, allocations: 0 / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/1.127, allocations: 4.469 kB / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.13e-05/1.127, allocations: 14.02 kB / 1.362 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.065e-06/1.127, allocations: 0 / 1.362 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.766e-05/1.127, allocations: 4.797 kB / 1.362 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/1.127, allocations: 0.6562 kB / 1.362 GB, free: 13.36 MB / 0.8073 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 3.444e-05/1.127, allocations: 105 kB / 1.362 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/1.127, allocations: 36.28 kB / 1.362 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/1.127, allocations: 89.67 kB / 1.362 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.127, allocations: 8.031 kB / 1.362 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/1.127, allocations: 3.938 kB / 1.362 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/1.127, allocations: 0.6562 kB / 1.362 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/1.127, allocations: 276.9 kB / 1.362 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/1.127, allocations: 0.5625 kB / 1.362 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.136e-05/1.127, allocations: 9.5 kB / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/1.127, allocations: 4.656 kB / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/1.127, allocations: 0 / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/1.127, allocations: 4.609 kB / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.127, allocations: 0 / 1.362 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001158/1.128, allocations: 172.9 kB / 1.362 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001479/1.128, allocations: 0.5574 MB / 1.363 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.79e-05/1.128, allocations: 138.1 kB / 1.363 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.873e-05/1.128, allocations: 0 / 1.363 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/1.128, allocations: 5.359 kB / 1.363 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.785e-05/1.128, allocations: 1.078 kB / 1.363 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/1.128, allocations: 0.6094 kB / 1.363 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0003252/1.128, allocations: 388.5 kB / 1.363 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000785/1.129, allocations: 40.03 kB / 1.363 GB, free: 11.75 MB / 0.8073 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.0004437/1.13, allocations: 276.2 kB / 1.364 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.1e-05/1.13, allocations: 20.67 kB / 1.364 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/1.13, allocations: 4 kB / 1.364 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.177e-05/1.13, allocations: 12.78 kB / 1.364 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/1.13, allocations: 36.56 kB / 1.364 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/1.131, allocations: 407.1 kB / 1.364 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/1.131, allocations: 0.8203 MB / 1.365 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of SimCode: time 2.61e-07/1.131, allocations: 0 / 1.365 GB, free: 10.41 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)