Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.WSEControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_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/Buildings 10.0.0-master/package.mo): time 2.504/2.504, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001915/0.001915, allocations: 189.8 kB / 0.4901 GB, free: 2.234 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.824/1.824, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.001381/0.001382, allocations: 92.95 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004142/0.0004143, allocations: 10.59 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3827, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.5982, allocations: 153.4 MB / 1.379 GB, free: 92 kB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.5985, allocations: 91.94 kB / 1.379 GB, free: 0 / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01336/0.6119, allocations: 4.755 MB / 1.384 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.225e-06/0.612, allocations: 0.875 kB / 1.384 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.032e-05/0.612, allocations: 8 kB / 1.384 GB, free: 11.2 MB / 0.8855 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.001042/0.6131, allocations: 0.5512 MB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.6131, allocations: 12.03 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.6133, allocations: 62.53 kB / 1.384 GB, free: 10.51 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.822e-05/0.6134, allocations: 35.61 kB / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.6138, allocations: 266.6 kB / 1.385 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.565e-05/0.6138, allocations: 28.66 kB / 1.385 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.695e-05/0.6139, allocations: 35.98 kB / 1.385 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007199/0.6146, allocations: 328.9 kB / 1.385 GB, free: 9.777 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.6147, allocations: 3.953 kB / 1.385 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.46e-05/0.6147, allocations: 15.94 kB / 1.385 GB, free: 9.758 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.6147, allocations: 4 kB / 1.385 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006193/0.6153, allocations: 266.1 kB / 1.385 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.6171, allocations: 0.9514 MB / 1.386 GB, free: 8.488 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008139/0.6179, allocations: 279.5 kB / 1.387 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.6179, allocations: 4 kB / 1.387 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004745/0.6184, allocations: 188 kB / 1.387 GB, free: 8.012 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=32): time 2.324e-06/0.6184, allocations: 0 / 1.387 GB, free: 8.012 MB / 0.8855 GB Notification: Performance of matching and sorting (n=32): time 0.0009818/0.6194, allocations: 373.2 kB / 1.387 GB, free: 7.641 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.6195, allocations: 55.41 kB / 1.387 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.6197, allocations: 190.4 kB / 1.387 GB, free: 7.375 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.6198, allocations: 37.7 kB / 1.387 GB, free: 7.332 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.62, allocations: 152.5 kB / 1.388 GB, free: 7.18 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.429e-05/0.6201, allocations: 82.95 kB / 1.388 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.6201, allocations: 8 kB / 1.388 GB, free: 7.09 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001874/0.6203, allocations: 338.8 kB / 1.388 GB, free: 6.75 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.6206, allocations: 108.8 kB / 1.388 GB, free: 6.645 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.6209, allocations: 177.4 kB / 1.388 GB, free: 6.453 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.6213, allocations: 133.6 kB / 1.388 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.6213, allocations: 3.938 kB / 1.388 GB, free: 6.312 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008942/0.6222, allocations: 366.8 kB / 1.389 GB, free: 5.941 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.6223, allocations: 41.69 kB / 1.389 GB, free: 5.895 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.6223, allocations: 0 / 1.389 GB, free: 5.895 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.409e-05/0.6223, allocations: 7.953 kB / 1.389 GB, free: 5.887 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.6226, allocations: 52.06 kB / 1.389 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.6226, allocations: 3.938 kB / 1.389 GB, free: 5.832 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.6229, allocations: 51.81 kB / 1.389 GB, free: 5.781 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.623, allocations: 16 kB / 1.389 GB, free: 5.766 MB / 0.8855 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 () * 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.0002715/0.6233, allocations: 175.1 kB / 1.389 GB, free: 5.586 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.513e-05/0.6233, allocations: 19.72 kB / 1.389 GB, free: 5.566 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000693/0.624, allocations: 311.2 kB / 1.389 GB, free: 5.262 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.624, allocations: 4 kB / 1.389 GB, free: 5.258 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.624, allocations: 3.953 kB / 1.389 GB, free: 5.254 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.6241, allocations: 0 / 1.389 GB, free: 5.254 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.6254, allocations: 0.7556 MB / 1.39 GB, free: 4.441 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.6254, allocations: 0 / 1.39 GB, free: 4.441 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.6256, allocations: 35.88 kB / 1.39 GB, free: 4.406 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.6256, allocations: 3.984 kB / 1.39 GB, free: 4.402 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.6257, allocations: 8 kB / 1.39 GB, free: 4.395 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.6257, allocations: 0 / 1.39 GB, free: 4.395 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-05/0.6257, allocations: 4 kB / 1.39 GB, free: 4.391 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006883/0.6264, allocations: 384.8 kB / 1.391 GB, free: 4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.066e-05/0.6265, allocations: 96.83 kB / 1.391 GB, free: 3.887 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.6266, allocations: 11.95 kB / 1.391 GB, free: 3.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.6268, allocations: 43.95 kB / 1.391 GB, free: 3.832 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.627, allocations: 43.88 kB / 1.391 GB, free: 3.789 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.627, allocations: 8 kB / 1.391 GB, free: 3.781 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001313/0.6272, allocations: 127.2 kB / 1.391 GB, free: 3.656 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6272, allocations: 7.938 kB / 1.391 GB, free: 3.648 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003927/0.6276, allocations: 63.98 kB / 1.391 GB, free: 3.586 MB / 0.8855 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) * 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.001233/0.6288, allocations: 0.9417 MB / 1.392 GB, free: 2.613 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007721/0.6296, allocations: 344.3 kB / 1.392 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.6296, allocations: 0 / 1.392 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.63, allocations: 143.8 kB / 1.392 GB, free: 2.125 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.6303, allocations: 32.06 kB / 1.392 GB, free: 2.094 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003479/0.6338, allocations: 2.18 MB / 1.394 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.6343, allocations: 0.7681 MB / 1.395 GB, free: 15.04 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001542/0.6345, allocations: 38.27 kB / 1.395 GB, free: 15 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.6347, allocations: 79.41 kB / 1.395 GB, free: 14.92 MB / 0.9011 GB Notification: Performance of SimCode: time 1.163e-06/0.6347, allocations: 0 / 1.395 GB, free: 14.92 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.6577, allocations: 5.007 MB / 1.4 GB, free: 10.11 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003151/0.6581, allocations: 213.7 kB / 1.4 GB, free: 9.859 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.72, allocations: 0.8906 kB / 1.4 GB, free: 9.859 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat does not exist to compare? outputFormat=mat