Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.396/1.396, allocations: 289.8 MB / 297.1 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009807/0.0009807, allocations: 173.3 kB / 366.3 MB, free: 1.996 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.065/1.065, allocations: 205.1 MB / 0.6256 GB, free: 7.453 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008594/0.0008592, allocations: 69.09 kB / 0.7395 GB, free: 39.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1921/0.193, allocations: 122.4 MB / 0.8591 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4606/0.6537, allocations: 116.3 MB / 0.9727 GB, free: 76.15 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.8027, allocations: 141.3 MB / 1.111 GB, free: 9.16 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.803, allocations: 99.92 kB / 1.111 GB, free: 9.062 MB / 0.7136 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.01349/0.8165, allocations: 5.396 MB / 1.116 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.8166, allocations: 12.16 kB / 1.116 GB, free: 3.664 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.442e-05/0.8167, allocations: 36.41 kB / 1.116 GB, free: 3.629 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006224/0.8173, allocations: 419.7 kB / 1.116 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.8173, allocations: 0.625 kB / 1.116 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.8173, allocations: 4 kB / 1.116 GB, free: 3.172 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.404e-05/0.8174, allocations: 36.58 kB / 1.117 GB, free: 3.137 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.8176, allocations: 58.53 kB / 1.117 GB, free: 3.074 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.8176, allocations: 0 / 1.117 GB, free: 3.074 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.8176, allocations: 9.703 kB / 1.117 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.8176, allocations: 0 / 1.117 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006428/0.8183, allocations: 478.3 kB / 1.117 GB, free: 2.562 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.888e-05/0.8184, allocations: 50.48 kB / 1.117 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.8184, allocations: 12.92 kB / 1.117 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.8184, allocations: 4 kB / 1.117 GB, free: 2.484 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.8184, allocations: 34.56 kB / 1.117 GB, free: 2.441 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.8185, allocations: 0 / 1.117 GB, free: 2.441 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001994/0.8187, allocations: 77.41 kB / 1.117 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.8187, allocations: 51.41 kB / 1.117 GB, free: 2.297 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.8193, allocations: 486 kB / 1.118 GB, free: 1.816 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.8193, allocations: 33.64 kB / 1.118 GB, free: 1.777 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/0.8194, allocations: 128.7 kB / 1.118 GB, free: 1.648 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.8194, allocations: 3.906 kB / 1.118 GB, free: 1.645 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.8194, allocations: 4 kB / 1.118 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.8195, allocations: 347 kB / 1.118 GB, free: 1.293 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.176e-05/0.8196, allocations: 11.94 kB / 1.118 GB, free: 1.281 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.627e-05/0.8196, allocations: 8 kB / 1.118 GB, free: 1.273 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.551e-05/0.8196, allocations: 8 kB / 1.118 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.8196, allocations: 0 / 1.118 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000127/0.8198, allocations: 80.38 kB / 1.118 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.8198, allocations: 4 kB / 1.118 GB, free: 1.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.8198, allocations: 11.89 kB / 1.118 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.338e-06/0.8198, allocations: 0 / 1.118 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.758e-05/0.8199, allocations: 8 kB / 1.118 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.8199, allocations: 6.422 kB / 1.118 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.472e-05/0.82, allocations: 0 / 1.118 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.82, allocations: 4 kB / 1.118 GB, free: 1.152 MB / 0.7136 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 5.785e-05/0.8201, allocations: 105.6 kB / 1.118 GB, free: 1.043 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.8201, allocations: 27.62 kB / 1.118 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.8203, allocations: 96.16 kB / 1.119 GB, free: 0.9102 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.8203, allocations: 4 kB / 1.119 GB, free: 0.9062 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.8203, allocations: 3.984 kB / 1.119 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.8204, allocations: 0 / 1.119 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.8206, allocations: 274 kB / 1.119 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.8206, allocations: 0.9375 kB / 1.119 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.208e-05/0.8207, allocations: 8 kB / 1.119 GB, free: 0.5898 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.8207, allocations: 0 / 1.119 GB, free: 0.5898 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.8207, allocations: 11.89 kB / 1.119 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.8207, allocations: 0 / 1.119 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.8207, allocations: 1.125 kB / 1.119 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001547/0.8209, allocations: 183.1 kB / 1.119 GB, free: 392 kB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002432/0.8211, allocations: 0.5466 MB / 1.12 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.8213, allocations: 136.7 kB / 1.12 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.8213, allocations: 0 / 1.12 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.8214, allocations: 9.125 kB / 1.12 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.8215, allocations: 3.984 kB / 1.12 GB, free: 15.65 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.8215, allocations: 7.938 kB / 1.12 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003933/0.8219, allocations: 388.5 kB / 1.12 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009282/0.8228, allocations: 35.84 kB / 1.12 GB, free: 15.23 MB / 0.7292 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.0005663/0.8234, allocations: 280.2 kB / 1.12 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 8.133e-05/0.8235, allocations: 23.94 kB / 1.12 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.8235, allocations: 0 / 1.12 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.478e-05/0.8235, allocations: 12 kB / 1.12 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.8238, allocations: 42.66 kB / 1.12 GB, free: 14.99 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000725/0.8245, allocations: 391.9 kB / 1.121 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003876/0.8249, allocations: 0.8171 MB / 1.122 GB, free: 13.74 MB / 0.7292 GB Notification: Performance of SimCode: time 4.298e-06/0.825, allocations: 5.312 kB / 1.122 GB, free: 13.73 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)