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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009053/0.0009053, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001045/0.001045, allocations: 172.7 kB / 15.95 MB, free: 208 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.564/1.564, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.696/2.696, allocations: 409.4 MB / 0.684 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003862, allocations: 8 kB / 0.8378 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8114/0.8118, allocations: 146.8 MB / 0.9811 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002466/0.8144, allocations: 1.687 MB / 0.9828 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.8158, allocations: 0.6744 MB / 0.9835 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.8161, allocations: 4 kB / 0.9835 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.8163, allocations: 27.72 kB / 0.9835 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.8165, allocations: 27.78 kB / 0.9835 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.817, allocations: 95.89 kB / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005149/0.8175, allocations: 363.1 kB / 0.9839 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.8179, allocations: 186.4 kB / 0.9841 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.8182, allocations: 103.6 kB / 0.9842 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.8183, allocations: 111.4 kB / 0.9843 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.8184, allocations: 12 kB / 0.9843 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.547e-05/0.8185, allocations: 23.98 kB / 0.9844 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.348e-05/0.8186, allocations: 51.77 kB / 0.9844 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.34e-05/0.8187, allocations: 69.58 kB / 0.9845 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003405/0.819, allocations: 309.5 kB / 0.9848 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.8191, allocations: 0 / 0.9848 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8191, allocations: 4 kB / 0.9848 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.8191, allocations: 0 / 0.9848 GB, free: 2.5 MB / 0.7325 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.00101/0.8201, allocations: 0.5404 MB / 0.9853 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.8202, allocations: 12.03 kB / 0.9853 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.8203, allocations: 62.53 kB / 0.9854 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.99e-05/0.8204, allocations: 31.62 kB / 0.9854 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.8207, allocations: 266.5 kB / 0.9857 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/0.8208, allocations: 32.64 kB / 0.9857 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.792e-05/0.8208, allocations: 35.95 kB / 0.9857 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/0.8215, allocations: 336.8 kB / 0.9861 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.8215, allocations: 0 / 0.9861 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.8216, allocations: 15.98 kB / 0.9861 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.8216, allocations: 8 kB / 0.9861 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005889/0.8222, allocations: 262.1 kB / 0.9863 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.8237, allocations: 0.9552 MB / 0.9873 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.8243, allocations: 271.1 kB / 0.9875 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002509/0.8246, allocations: 128.8 kB / 0.9876 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.8246, allocations: 4 kB / 0.9876 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004305/0.8251, allocations: 187.1 kB / 0.9878 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=32): time 2.535e-06/0.8251, allocations: 3.938 kB / 0.9878 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of matching and sorting (n=32): time 0.0008654/0.826, allocations: 373.3 kB / 0.9882 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.826, allocations: 55.41 kB / 0.9882 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.8262, allocations: 203.3 kB / 0.9884 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.8263, allocations: 41.69 kB / 0.9885 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.8264, allocations: 152.5 kB / 0.9886 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.574e-05/0.8265, allocations: 82.94 kB / 0.9887 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.8265, allocations: 8 kB / 0.9887 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.8267, allocations: 338.8 kB / 0.989 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.8269, allocations: 116.8 kB / 0.9891 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.8272, allocations: 169.5 kB / 0.9893 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.8275, allocations: 133.6 kB / 0.9894 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.8276, allocations: 4 kB / 0.9894 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006768/0.8282, allocations: 378.6 kB / 0.9898 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.8283, allocations: 34.64 kB / 0.9898 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.8283, allocations: 4 kB / 0.9898 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.8283, allocations: 4 kB / 0.9898 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.8285, allocations: 48.06 kB / 0.9899 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.8286, allocations: 7.938 kB / 0.9899 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.8288, allocations: 67.55 kB / 0.9899 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.8289, allocations: 12 kB / 0.99 GB, free: 12.9 MB / 0.7481 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.0002011/0.8291, allocations: 177.8 kB / 0.9901 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.8291, allocations: 19.77 kB / 0.9901 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000621/0.8297, allocations: 308.3 kB / 0.9904 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.8298, allocations: 4 kB / 0.9904 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.8298, allocations: 0 / 0.9904 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.8298, allocations: 7.922 kB / 0.9905 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.831, allocations: 0.7594 MB / 0.9912 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.831, allocations: 0 / 0.9912 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.8311, allocations: 35.97 kB / 0.9912 GB, free: 11.53 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.8311, allocations: 0 / 0.9912 GB, free: 11.53 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.8312, allocations: 8 kB / 0.9912 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.8312, allocations: 0 / 0.9912 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.8312, allocations: 4 kB / 0.9912 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006088/0.8318, allocations: 383.6 kB / 0.9916 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.352e-05/0.8319, allocations: 100.8 kB / 0.9917 GB, free: 11.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.385e-05/0.832, allocations: 15.92 kB / 0.9917 GB, free: 11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.8322, allocations: 35.97 kB / 0.9917 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.8323, allocations: 39.94 kB / 0.9918 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.8323, allocations: 12 kB / 0.9918 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000113/0.8324, allocations: 135.5 kB / 0.9919 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1e-07/0.8325, allocations: 0 / 0.9919 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003483/0.8328, allocations: 67.84 kB / 0.992 GB, free: 10.71 MB / 0.7481 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.0009528/0.8338, allocations: 0.9454 MB / 0.9929 GB, free: 9.742 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006511/0.8344, allocations: 343.5 kB / 0.9932 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.8345, allocations: 8.062 kB / 0.9933 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.8347, allocations: 147.8 kB / 0.9934 GB, free: 9.242 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.8351, allocations: 33.53 kB / 0.9934 GB, free: 9.211 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.8377, allocations: 1.428 MB / 0.9948 GB, free: 7.719 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.838, allocations: 0.7603 MB / 0.9956 GB, free: 6.93 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001262/0.8382, allocations: 30.28 kB / 0.9956 GB, free: 6.898 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.8383, allocations: 83.34 kB / 0.9957 GB, free: 6.816 MB / 0.7481 GB Notification: Performance of SimCode: time 7.91e-07/0.8383, allocations: 0 / 0.9957 GB, free: 6.816 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.8581, allocations: 5.088 MB / 1.001 GB, free: 1.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/0.8584, allocations: 215.1 kB / 1.001 GB, free: 1.691 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.095/2.954, allocations: 3.734 kB / 1.001 GB, free: 1.691 MB / 0.7481 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) Environment - environmentSimulation: 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