Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.488/2.488, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004024, allocations: 12 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8047/0.8052, allocations: 142.3 MB / 0.9536 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.001934/0.8071, allocations: 1.688 MB / 0.9553 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009689/0.8081, allocations: 0.6673 MB / 0.9559 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.8083, allocations: 11.62 kB / 0.9559 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.8084, allocations: 24.58 kB / 0.9559 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.664e-05/0.8085, allocations: 31.81 kB / 0.956 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.8088, allocations: 95.67 kB / 0.9561 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.8091, allocations: 231.2 kB / 0.9563 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.8094, allocations: 193.2 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.8095, allocations: 96.03 kB / 0.9566 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.8097, allocations: 120.1 kB / 0.9567 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.8097, allocations: 13.59 kB / 0.9567 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.247e-05/0.8098, allocations: 19.81 kB / 0.9567 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.276e-05/0.8099, allocations: 51.28 kB / 0.9568 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.874e-05/0.8099, allocations: 72.33 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002548/0.8102, allocations: 312.3 kB / 0.9571 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.8102, allocations: 0 / 0.9571 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8102, allocations: 0 / 0.9571 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.8102, allocations: 1.25 kB / 0.9571 GB, free: 5.387 MB / 0.7169 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.0007481/0.811, allocations: 0.5503 MB / 0.9577 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.811, allocations: 13.03 kB / 0.9577 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.497e-05/0.8111, allocations: 63.53 kB / 0.9577 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.217e-05/0.8112, allocations: 33.56 kB / 0.9578 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.8114, allocations: 256.8 kB / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.8115, allocations: 26.66 kB / 0.958 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.183e-05/0.8115, allocations: 42.48 kB / 0.9581 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006045/0.8121, allocations: 331.4 kB / 0.9584 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.8122, allocations: 0 / 0.9584 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.8122, allocations: 15.33 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.8122, allocations: 7.094 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005526/0.8128, allocations: 265.2 kB / 0.9587 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.814, allocations: 0.9562 MB / 0.9596 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006026/0.8146, allocations: 273.4 kB / 0.9599 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.8147, allocations: 6.734 kB / 0.9599 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004014/0.8151, allocations: 181.5 kB / 0.96 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.873e-06/0.8151, allocations: 0 / 0.96 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0008566/0.8159, allocations: 372.1 kB / 0.9604 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.816, allocations: 60.42 kB / 0.9604 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.8162, allocations: 202.6 kB / 0.9606 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.8162, allocations: 43.23 kB / 0.9607 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.8163, allocations: 149.8 kB / 0.9608 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.8164, allocations: 87.03 kB / 0.9609 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.8164, allocations: 6.094 kB / 0.9609 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.388e-05/0.8165, allocations: 335.8 kB / 0.9612 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.8168, allocations: 108.7 kB / 0.9613 GB, free: 2 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.817, allocations: 170.9 kB / 0.9615 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.8173, allocations: 136.4 kB / 0.9616 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.8173, allocations: 0 / 0.9616 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007124/0.818, allocations: 374.8 kB / 0.962 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.8181, allocations: 36.61 kB / 0.962 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.8181, allocations: 5 kB / 0.962 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.8181, allocations: 7.25 kB / 0.962 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.8183, allocations: 50.11 kB / 0.9621 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.8184, allocations: 3.438 kB / 0.9621 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.8187, allocations: 71.31 kB / 0.9622 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.8187, allocations: 14.19 kB / 0.9622 GB, free: 1.492 MB / 0.7169 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.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Number of clocked 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.0001767/0.8189, allocations: 168.3 kB / 0.9623 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.8189, allocations: 21.56 kB / 0.9623 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006538/0.8196, allocations: 314.9 kB / 0.9627 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.8196, allocations: 3.656 kB / 0.9627 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.8196, allocations: 3.953 kB / 0.9627 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.8196, allocations: 3.984 kB / 0.9627 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.8208, allocations: 0.7562 MB / 0.9634 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.8208, allocations: 0 / 0.9634 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.821, allocations: 42.78 kB / 0.9634 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.821, allocations: 6.547 kB / 0.9634 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.821, allocations: 5.062 kB / 0.9635 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.821, allocations: 2.125 kB / 0.9635 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.821, allocations: 3.938 kB / 0.9635 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.8217, allocations: 379.2 kB / 0.9638 GB, free: 300 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.842e-05/0.8217, allocations: 99.64 kB / 0.9639 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.914e-05/0.8218, allocations: 14.94 kB / 0.9639 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.8221, allocations: 37.44 kB / 0.964 GB, free: 160 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.8222, allocations: 45.2 kB / 0.964 GB, free: 132 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.8223, allocations: 14.83 kB / 0.964 GB, free: 124 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001506/0.8224, allocations: 126.3 kB / 0.9641 GB, free: 24 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8224, allocations: 0 / 0.9641 GB, free: 24 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004884/0.8229, allocations: 65.69 kB / 0.9642 GB, free: 8 kB / 0.7169 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.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * 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.001451/0.8244, allocations: 0.9337 MB / 0.9651 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009678/0.8254, allocations: 354.2 kB / 0.9655 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.8254, allocations: 0 / 0.9655 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.8258, allocations: 135.7 kB / 0.9656 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.8262, allocations: 36.56 kB / 0.9656 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/0.8305, allocations: 2.181 MB / 0.9677 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006518/0.8312, allocations: 0.7623 MB / 0.9685 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001774/0.8314, allocations: 38.97 kB / 0.9685 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.8316, allocations: 87.55 kB / 0.9686 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of SimCode: time 1.082e-06/0.8316, allocations: 0 / 0.9686 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0192/0.8508, allocations: 5.059 MB / 0.9736 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002477/0.8511, allocations: 208.1 kB / 0.9738 GB, free: 9.805 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.706, allocations: 0 / 0.9738 GB, free: 9.805 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat does not exist to compare? outputFormat=mat