Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.76/2.76, allocations: 287.3 MB / 302.3 MB, free: 8.297 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.002761/0.002762, allocations: 186.8 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.306/2.306, allocations: 205.4 MB / 0.6295 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001076, allocations: 89.67 kB / 0.7428 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005986/0.0005988, allocations: 11.61 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2255, allocations: 115.3 MB / 0.9783 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00251/0.228, allocations: 1.688 MB / 0.9799 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2296, allocations: 0.7104 MB / 0.9806 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.2298, allocations: 11.94 kB / 0.9807 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.23, allocations: 23.8 kB / 0.9807 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.2301, allocations: 31.88 kB / 0.9807 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.2306, allocations: 111.7 kB / 0.9808 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.231, allocations: 223.6 kB / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.2314, allocations: 186.5 kB / 0.9812 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.2315, allocations: 99.61 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.2317, allocations: 111.5 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.099e-05/0.2318, allocations: 12 kB / 0.9814 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-05/0.2318, allocations: 23.98 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.292e-05/0.2319, allocations: 51.77 kB / 0.9815 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.468e-05/0.232, allocations: 69.58 kB / 0.9816 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.2324, allocations: 307.5 kB / 0.9818 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2325, allocations: 4 kB / 0.9818 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.355e-06/0.2325, allocations: 0 / 0.9818 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.2325, allocations: 0 / 0.9818 GB, free: 24.61 MB / 0.6198 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.001077/0.2336, allocations: 0.5481 MB / 0.9824 GB, free: 24 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.2336, allocations: 12.03 kB / 0.9824 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.727e-05/0.2337, allocations: 62.53 kB / 0.9825 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.679e-05/0.2338, allocations: 35.58 kB / 0.9825 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.2342, allocations: 273.2 kB / 0.9828 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/0.2342, allocations: 28.66 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.2343, allocations: 36 kB / 0.9828 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008852/0.2352, allocations: 336.8 kB / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.2353, allocations: 0 / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.2353, allocations: 8 kB / 0.9831 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2353, allocations: 8 kB / 0.9831 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000893/0.2362, allocations: 266 kB / 0.9834 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.2382, allocations: 0.9474 MB / 0.9843 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009397/0.2392, allocations: 283 kB / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.2392, allocations: 0 / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005677/0.2398, allocations: 183.3 kB / 0.9848 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=32): time 2.505e-06/0.2398, allocations: 0 / 0.9848 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of matching and sorting (n=32): time 0.001288/0.2411, allocations: 374 kB / 0.9851 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.2412, allocations: 59.36 kB / 0.9852 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.2414, allocations: 203.3 kB / 0.9854 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.32e-05/0.2415, allocations: 45.7 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.2416, allocations: 148.6 kB / 0.9856 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.194e-05/0.2417, allocations: 90.78 kB / 0.9857 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.762e-05/0.2417, allocations: 11.94 kB / 0.9857 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.626e-05/0.2418, allocations: 334.8 kB / 0.986 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/0.2422, allocations: 108.8 kB / 0.9861 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/0.2427, allocations: 169.5 kB / 0.9862 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.2431, allocations: 137.6 kB / 0.9864 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.2431, allocations: 0 / 0.9864 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001069/0.2442, allocations: 378.7 kB / 0.9867 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.339e-05/0.2443, allocations: 41.69 kB / 0.9868 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.2443, allocations: 0 / 0.9868 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.2443, allocations: 4 kB / 0.9868 GB, free: 19.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/0.2447, allocations: 39.91 kB / 0.9868 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.2447, allocations: 4 kB / 0.9868 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.2451, allocations: 67.64 kB / 0.9869 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.2452, allocations: 16 kB / 0.9869 GB, free: 19.14 MB / 0.6198 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.0002429/0.2454, allocations: 169.7 kB / 0.9871 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/0.2455, allocations: 27.7 kB / 0.9871 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009402/0.2465, allocations: 306.4 kB / 0.9874 GB, free: 18.63 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.2465, allocations: 3.984 kB / 0.9874 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2465, allocations: 4 kB / 0.9874 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.2465, allocations: 0 / 0.9874 GB, free: 18.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.2481, allocations: 0.757 MB / 0.9881 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.2482, allocations: 0 / 0.9881 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.2484, allocations: 43.92 kB / 0.9882 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.2484, allocations: 0 / 0.9882 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.2485, allocations: 15.94 kB / 0.9882 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.2485, allocations: 0 / 0.9882 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2485, allocations: 0 / 0.9882 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000851/0.2494, allocations: 383.3 kB / 0.9886 GB, free: 17.36 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.683e-05/0.2494, allocations: 100.8 kB / 0.9887 GB, free: 17.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.259e-05/0.2495, allocations: 4 kB / 0.9887 GB, free: 17.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003926/0.2499, allocations: 39.92 kB / 0.9887 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.2501, allocations: 51.86 kB / 0.9887 GB, free: 17.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.2501, allocations: 12 kB / 0.9888 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001204/0.2503, allocations: 131.4 kB / 0.9889 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.483e-06/0.2503, allocations: 4 kB / 0.9889 GB, free: 17 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004854/0.2508, allocations: 79.7 kB / 0.989 GB, free: 16.93 MB / 0.6198 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.001132/0.2519, allocations: 0.929 MB / 0.9899 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009973/0.2529, allocations: 343.8 kB / 0.9902 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2529, allocations: 0 / 0.9902 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004306/0.2534, allocations: 140.9 kB / 0.9903 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.2538, allocations: 40.38 kB / 0.9904 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.2572, allocations: 2.165 MB / 0.9925 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.2575, allocations: 0.7681 MB / 0.9932 GB, free: 12.42 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002001/0.2577, allocations: 30.28 kB / 0.9933 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.258, allocations: 83.41 kB / 0.9933 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of SimCode: time 1.383e-06/0.258, allocations: 0 / 0.9933 GB, free: 12.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03437/0.2923, allocations: 5.065 MB / 0.9983 GB, free: 7.422 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.2927, allocations: 210.4 kB / 0.9985 GB, free: 7.18 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.614/2.907, allocations: 2.109 kB / 0.9985 GB, free: 7.18 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)