Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.785/1.785, allocations: 390.4 MB / 397.7 MB, free: 11.32 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.0009385/0.0009386, allocations: 177.3 kB / 490.8 MB, free: 1.988 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.153/1.153, allocations: 221.3 MB / 0.7863 GB, free: 13.81 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008689/0.0008689, allocations: 88.66 kB / 0.9264 GB, free: 14.34 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4/0.4009, allocations: 149.1 MB / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.5805, allocations: 143 MB / 1.212 GB, free: 21.86 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4836/1.064, allocations: 153 MB / 1.361 GB, free: 236 kB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/1.064, allocations: 95.12 kB / 1.361 GB, free: 180 kB / 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.01315/1.078, allocations: 5.589 MB / 1.367 GB, free: 11.48 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/1.078, allocations: 8 kB / 1.367 GB, free: 11.47 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/1.078, allocations: 35.47 kB / 1.367 GB, free: 11.44 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005916/1.078, allocations: 427.8 kB / 1.367 GB, free: 11.05 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/1.078, allocations: 3.906 kB / 1.367 GB, free: 11.05 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/1.078, allocations: 4 kB / 1.367 GB, free: 11.04 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.218e-05/1.078, allocations: 33.31 kB / 1.367 GB, free: 11.02 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.604e-05/1.079, allocations: 64.17 kB / 1.367 GB, free: 10.96 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/1.079, allocations: 0 / 1.367 GB, free: 10.96 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/1.079, allocations: 0 / 1.367 GB, free: 10.96 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/1.079, allocations: 7.938 kB / 1.367 GB, free: 10.96 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/1.079, allocations: 476.3 kB / 1.368 GB, free: 10.54 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.951e-05/1.079, allocations: 44.25 kB / 1.368 GB, free: 10.49 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.617e-05/1.079, allocations: 16.23 kB / 1.368 GB, free: 10.48 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/1.079, allocations: 0 / 1.368 GB, free: 10.48 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/1.079, allocations: 38.64 kB / 1.368 GB, free: 10.43 MB / 0.823 GB Notification: Performance of pre-optimization done (n=3): time 1.382e-06/1.079, allocations: 0 / 1.368 GB, free: 10.43 MB / 0.823 GB Notification: Performance of matching and sorting (n=3): time 0.0001795/1.08, allocations: 76.25 kB / 1.368 GB, free: 10.36 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.184e-05/1.08, allocations: 55.41 kB / 1.368 GB, free: 10.29 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005192/1.08, allocations: 486.1 kB / 1.368 GB, free: 9.922 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/1.08, allocations: 25.7 kB / 1.368 GB, free: 9.891 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.437e-05/1.08, allocations: 132.1 kB / 1.368 GB, free: 9.773 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/1.08, allocations: 3.906 kB / 1.368 GB, free: 9.77 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/1.08, allocations: 4 kB / 1.368 GB, free: 9.766 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.08, allocations: 344.6 kB / 1.369 GB, free: 9.434 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.962e-05/1.08, allocations: 7.938 kB / 1.369 GB, free: 9.426 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.654e-05/1.08, allocations: 11.3 kB / 1.369 GB, free: 9.418 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.416e-05/1.08, allocations: 7.375 kB / 1.369 GB, free: 9.414 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/1.08, allocations: 0 / 1.369 GB, free: 9.414 MB / 0.823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001179/1.081, allocations: 79.5 kB / 1.369 GB, free: 9.336 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 9.669e-06/1.081, allocations: 4 kB / 1.369 GB, free: 9.332 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/1.081, allocations: 3.984 kB / 1.369 GB, free: 9.328 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.535e-06/1.081, allocations: 4 kB / 1.369 GB, free: 9.324 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.124e-05/1.081, allocations: 11.98 kB / 1.369 GB, free: 9.312 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/1.081, allocations: 3.906 kB / 1.369 GB, free: 9.309 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.983e-05/1.081, allocations: 4 kB / 1.369 GB, free: 9.305 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/1.081, allocations: 7.938 kB / 1.369 GB, free: 9.297 MB / 0.823 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 6.035e-05/1.081, allocations: 101.1 kB / 1.369 GB, free: 9.191 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.788e-05/1.081, allocations: 38.69 kB / 1.369 GB, free: 9.156 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/1.081, allocations: 98.34 kB / 1.369 GB, free: 9.059 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/1.081, allocations: 3.906 kB / 1.369 GB, free: 9.055 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/1.081, allocations: 4 kB / 1.369 GB, free: 9.051 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/1.081, allocations: 0 / 1.369 GB, free: 9.051 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/1.081, allocations: 272.9 kB / 1.369 GB, free: 8.793 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.081, allocations: 0 / 1.369 GB, free: 8.793 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.608e-05/1.081, allocations: 11.98 kB / 1.369 GB, free: 8.781 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/1.081, allocations: 0 / 1.369 GB, free: 8.781 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/1.081, allocations: 0 / 1.369 GB, free: 8.781 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.081, allocations: 0 / 1.369 GB, free: 8.781 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.081, allocations: 7.906 kB / 1.369 GB, free: 8.773 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001476/1.082, allocations: 174.7 kB / 1.37 GB, free: 8.594 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002383/1.082, allocations: 0.5469 MB / 1.37 GB, free: 8.039 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/1.082, allocations: 138.2 kB / 1.37 GB, free: 7.898 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.893e-05/1.082, allocations: 11.89 kB / 1.37 GB, free: 7.887 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.917e-05/1.082, allocations: 4 kB / 1.37 GB, free: 7.883 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.396e-05/1.082, allocations: 0 / 1.37 GB, free: 7.883 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/1.082, allocations: 0 / 1.37 GB, free: 7.883 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003665/1.083, allocations: 384.9 kB / 1.371 GB, free: 7.609 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007957/1.083, allocations: 35.88 kB / 1.371 GB, free: 7.578 MB / 0.823 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.0004705/1.084, allocations: 274.9 kB / 1.371 GB, free: 7.379 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 9.65e-05/1.084, allocations: 26.67 kB / 1.371 GB, free: 7.359 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/1.084, allocations: 0 / 1.371 GB, free: 7.359 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 2.228e-05/1.084, allocations: 14.75 kB / 1.371 GB, free: 7.348 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/1.084, allocations: 37.7 kB / 1.371 GB, free: 7.324 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006717/1.085, allocations: 402 kB / 1.371 GB, free: 6.961 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/1.085, allocations: 0.8159 MB / 1.372 GB, free: 6.141 MB / 0.823 GB Notification: Performance of SimCode: time 1.583e-06/1.085, allocations: 4 kB / 1.372 GB, free: 6.137 MB / 0.823 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)