Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",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.3-maint.7.0.x/package.mo): time 1.282/1.282, allocations: 249.4 MB / 256.7 MB, free: 7.043 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.00105/0.00105, allocations: 181.2 kB / 316 MB, free: 3.523 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.266/1.266, allocations: 205.1 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 83.03 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3536/0.3547, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.5386, allocations: 106.3 MB / 0.8847 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5145/1.053, allocations: 135.4 MB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/1.053, allocations: 93.03 kB / 1.017 GB, free: 3.039 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.01227/1.066, allocations: 4.889 MB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/1.066, allocations: 15.94 kB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.264e-05/1.066, allocations: 35.62 kB / 1.022 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/1.066, allocations: 278.6 kB / 1.022 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/1.066, allocations: 11.19 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/1.066, allocations: 20 kB / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003796/1.067, allocations: 200.7 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004327/1.067, allocations: 270.7 kB / 1.023 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/1.067, allocations: 4 kB / 1.023 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/1.067, allocations: 0 / 1.023 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/1.067, allocations: 4 kB / 1.023 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/1.068, allocations: 0.8893 MB / 1.023 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/1.069, allocations: 210.7 kB / 1.024 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/1.069, allocations: 96.91 kB / 1.024 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/1.069, allocations: 3.438 kB / 1.024 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002059/1.069, allocations: 135.8 kB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/1.069, allocations: 3.938 kB / 1.024 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=32): time 0.0003578/1.07, allocations: 204.7 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/1.07, allocations: 55.41 kB / 1.024 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/1.07, allocations: 166.4 kB / 1.024 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/1.07, allocations: 35.89 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/1.07, allocations: 141.8 kB / 1.024 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/1.07, allocations: 76.28 kB / 1.025 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/1.07, allocations: 0 / 1.025 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001491/1.07, allocations: 336.6 kB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/1.07, allocations: 80.38 kB / 1.025 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/1.071, allocations: 134.5 kB / 1.025 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/1.071, allocations: 79.31 kB / 1.025 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/1.071, allocations: 0 / 1.025 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004004/1.071, allocations: 272.5 kB / 1.025 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/1.071, allocations: 8 kB / 1.025 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/1.071, allocations: 0 / 1.025 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/1.071, allocations: 4 kB / 1.025 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/1.071, allocations: 47.41 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/1.071, allocations: 8.094 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/1.072, allocations: 47.81 kB / 1.026 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/1.072, allocations: 19.23 kB / 1.026 GB, free: 11.63 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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.0001149/1.072, allocations: 126.3 kB / 1.026 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.994e-05/1.072, allocations: 23.72 kB / 1.026 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000409/1.072, allocations: 228.4 kB / 1.026 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/1.072, allocations: 8 kB / 1.026 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/1.072, allocations: 0 / 1.026 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/1.072, allocations: 3.984 kB / 1.026 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008245/1.073, allocations: 0.635 MB / 1.027 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/1.073, allocations: 0 / 1.027 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/1.073, allocations: 39.91 kB / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/1.073, allocations: 4 kB / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/1.073, allocations: 0 / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.073, allocations: 0 / 1.027 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.073, allocations: 4 kB / 1.027 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003504/1.074, allocations: 309.2 kB / 1.027 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004414/1.074, allocations: 0.6738 MB / 1.028 GB, free: 9.789 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/1.074, allocations: 92.92 kB / 1.028 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/1.074, allocations: 3.906 kB / 1.028 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/1.075, allocations: 39.95 kB / 1.028 GB, free: 9.637 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/1.075, allocations: 41.94 kB / 1.028 GB, free: 9.605 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/1.075, allocations: 4 kB / 1.028 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.247e-05/1.075, allocations: 118.5 kB / 1.028 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000923/1.076, allocations: 55.94 kB / 1.028 GB, free: 9.445 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: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001737/1.076, allocations: 120.8 kB / 1.028 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003706/1.076, allocations: 252.9 kB / 1.028 GB, free: 9.137 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/1.076, allocations: 0 / 1.028 GB, free: 9.137 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001687/1.076, allocations: 117.4 kB / 1.028 GB, free: 9.059 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/1.077, allocations: 27.45 kB / 1.028 GB, free: 9.035 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006907/1.077, allocations: 307.9 kB / 1.029 GB, free: 8.762 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004528/1.078, allocations: 0.7942 MB / 1.029 GB, free: 7.945 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/1.078, allocations: 0 / 1.029 GB, free: 7.945 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)