Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001666, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 194.8 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.68/1.68, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 66.81 kB / 0.6723 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2149, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003391/0.2184, allocations: 2.016 MB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.2196, allocations: 0.7374 MB / 0.7868 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2197, allocations: 7.938 kB / 0.7868 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.2199, allocations: 35.61 kB / 0.7869 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.173e-05/0.22, allocations: 39.59 kB / 0.7869 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.2204, allocations: 147.8 kB / 0.787 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004481/0.2209, allocations: 415.2 kB / 0.7874 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003313/0.2212, allocations: 247.8 kB / 0.7877 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.2214, allocations: 139.5 kB / 0.7878 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.2216, allocations: 151.3 kB / 0.788 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.491e-05/0.2216, allocations: 40 kB / 0.788 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.457e-05/0.2217, allocations: 44 kB / 0.788 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.2218, allocations: 87.77 kB / 0.7881 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.222, allocations: 155.2 kB / 0.7883 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.2224, allocations: 418.7 kB / 0.7887 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2224, allocations: 0 / 0.7887 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.864e-06/0.2224, allocations: 4 kB / 0.7887 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.2224, allocations: 0 / 0.7887 GB, free: 8.082 MB / 0.6075 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.0009836/0.2234, allocations: 0.5989 MB / 0.7893 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2235, allocations: 12.03 kB / 0.7893 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.898e-05/0.2236, allocations: 36.56 kB / 0.7893 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.224, allocations: 274.6 kB / 0.7896 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.224, allocations: 29.03 kB / 0.7896 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/0.2241, allocations: 40.36 kB / 0.7896 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.2247, allocations: 333.1 kB / 0.7899 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2247, allocations: 0 / 0.7899 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.2248, allocations: 12 kB / 0.79 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.2248, allocations: 12 kB / 0.79 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005592/0.2254, allocations: 250.1 kB / 0.7902 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.2268, allocations: 0.9433 MB / 0.7911 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006108/0.2274, allocations: 274.8 kB / 0.7914 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/0.2276, allocations: 120.8 kB / 0.7915 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.2277, allocations: 8 kB / 0.7915 GB, free: 5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003701/0.2281, allocations: 183.2 kB / 0.7917 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.873e-06/0.2281, allocations: 0 / 0.7917 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0008275/0.2289, allocations: 355.6 kB / 0.792 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.229, allocations: 59.41 kB / 0.7921 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.2292, allocations: 203.3 kB / 0.7923 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.2292, allocations: 37.7 kB / 0.7923 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.2293, allocations: 156.6 kB / 0.7925 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.927e-05/0.2294, allocations: 78.84 kB / 0.7925 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.2296, allocations: 94.11 kB / 0.7926 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.2297, allocations: 334.8 kB / 0.7929 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.23, allocations: 108.8 kB / 0.793 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.2303, allocations: 173.4 kB / 0.7932 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004605/0.2307, allocations: 254.7 kB / 0.7935 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.05e-05/0.2308, allocations: 4 kB / 0.7935 GB, free: 2.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006887/0.2315, allocations: 374.8 kB / 0.7938 GB, free: 2.516 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.2315, allocations: 29.7 kB / 0.7938 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2315, allocations: 4 kB / 0.7938 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2316, allocations: 0 / 0.7938 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.2318, allocations: 43.91 kB / 0.7939 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.2318, allocations: 4 kB / 0.7939 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.2321, allocations: 55.81 kB / 0.7939 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.749e-05/0.2321, allocations: 15.98 kB / 0.794 GB, free: 2.359 MB / 0.6075 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,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.localCondition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.localCondition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001813/0.2323, allocations: 178.3 kB / 0.7941 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.2323, allocations: 23.7 kB / 0.7942 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006359/0.233, allocations: 296.6 kB / 0.7944 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.233, allocations: 4 kB / 0.7944 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.233, allocations: 0 / 0.7944 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.233, allocations: 0 / 0.7944 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.2341, allocations: 0.7525 MB / 0.7952 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2342, allocations: 3.938 kB / 0.7952 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.2343, allocations: 39.91 kB / 0.7952 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2343, allocations: 4 kB / 0.7952 GB, free: 1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.2343, allocations: 4 kB / 0.7952 GB, free: 0.9961 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-06/0.2344, allocations: 3.938 kB / 0.7952 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2344, allocations: 0 / 0.7952 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.2349, allocations: 372.2 kB / 0.7956 GB, free: 0.6133 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.085e-05/0.235, allocations: 104.8 kB / 0.7957 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.235, allocations: 8 kB / 0.7957 GB, free: 496 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.2353, allocations: 35.89 kB / 0.7957 GB, free: 460 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.2354, allocations: 39.95 kB / 0.7958 GB, free: 420 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.2354, allocations: 15.94 kB / 0.7958 GB, free: 404 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001074/0.2356, allocations: 135.7 kB / 0.7959 GB, free: 268 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2356, allocations: 4 kB / 0.7959 GB, free: 264 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003294/0.2359, allocations: 67.84 kB / 0.796 GB, free: 196 kB / 0.6075 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.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002121/0.2361, allocations: 117.4 kB / 0.7961 GB, free: 64 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006771/0.2368, allocations: 335.1 kB / 0.7964 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2368, allocations: 4.312 kB / 0.7964 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.2371, allocations: 135.9 kB / 0.7965 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.2375, allocations: 27.98 kB / 0.7966 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008548/0.2383, allocations: 463.8 kB / 0.797 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.2387, allocations: 0.7641 MB / 0.7978 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001126/0.2388, allocations: 34.28 kB / 0.7978 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.078e-05/0.2389, allocations: 27.42 kB / 0.7978 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of SimCode: time 2.71e-07/0.2389, allocations: 0 / 0.7978 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of Templates: time 0.006454/0.2454, allocations: 3.109 MB / 0.8009 GB, free: 11.14 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)