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.001348/0.001348, allocations: 110.2 kB / 16.36 MB, free: 6.012 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.001274/0.001274, allocations: 193.8 kB / 17.3 MB, free: 5.613 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.385/1.385, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.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.79/1.79, allocations: 292.3 MB / 0.5496 GB, free: 17.48 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.001417/0.001417, allocations: 71.89 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2088, allocations: 114.6 MB / 0.7848 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003149/0.212, allocations: 2.012 MB / 0.7868 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.2131, allocations: 0.7295 MB / 0.7875 GB, free: 392 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.2132, allocations: 7.938 kB / 0.7875 GB, free: 384 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.2134, allocations: 31.61 kB / 0.7875 GB, free: 352 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.055e-05/0.2135, allocations: 39.59 kB / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.2139, allocations: 155.8 kB / 0.7877 GB, free: 156 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.338/0.5519, allocations: 404.2 kB / 0.7881 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.5524, allocations: 244.8 kB / 0.7883 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.5526, allocations: 136.9 kB / 0.7884 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.5527, allocations: 143.8 kB / 0.7886 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.5528, allocations: 43.75 kB / 0.7886 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.5529, allocations: 55.84 kB / 0.7887 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.902e-05/0.553, allocations: 80.53 kB / 0.7888 GB, free: 46.35 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.5531, allocations: 153.9 kB / 0.7889 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003915/0.5535, allocations: 425.1 kB / 0.7893 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5535, allocations: 0 / 0.7893 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.883e-06/0.5536, allocations: 0.6875 kB / 0.7893 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.5536, allocations: 2.844 kB / 0.7893 GB, free: 46.27 MB / 0.6544 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.0008071/0.5544, allocations: 0.5954 MB / 0.7899 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.5544, allocations: 7.875 kB / 0.7899 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.5545, allocations: 36.25 kB / 0.7899 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.5547, allocations: 274.2 kB / 0.7902 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.5548, allocations: 25.94 kB / 0.7902 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.951e-05/0.5548, allocations: 32.59 kB / 0.7903 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005568/0.5554, allocations: 336 kB / 0.7906 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.5554, allocations: 3.938 kB / 0.7906 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.5555, allocations: 15.34 kB / 0.7906 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.5555, allocations: 8.688 kB / 0.7906 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005033/0.556, allocations: 253.8 kB / 0.7908 GB, free: 45.53 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.5572, allocations: 0.9464 MB / 0.7918 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005781/0.5578, allocations: 265.4 kB / 0.792 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.558, allocations: 129.3 kB / 0.7921 GB, free: 45.09 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.5581, allocations: 4.312 kB / 0.7921 GB, free: 45.09 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.5585, allocations: 181.4 kB / 0.7923 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=32): time 2.104e-06/0.5585, allocations: 0 / 0.7923 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=32): time 0.0007347/0.5592, allocations: 356 kB / 0.7927 GB, free: 45 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.5593, allocations: 54.84 kB / 0.7927 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.5594, allocations: 201.4 kB / 0.7929 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.5595, allocations: 44.8 kB / 0.7929 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.5595, allocations: 154.3 kB / 0.7931 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/0.5596, allocations: 79.62 kB / 0.7932 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.5597, allocations: 87.62 kB / 0.7933 GB, free: 44.63 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.868e-05/0.5598, allocations: 341.5 kB / 0.7936 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.56, allocations: 105.2 kB / 0.7937 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.5603, allocations: 168.2 kB / 0.7938 GB, free: 44.27 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.5607, allocations: 260.9 kB / 0.7941 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5607, allocations: 0.5938 kB / 0.7941 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005979/0.5613, allocations: 370 kB / 0.7944 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.5613, allocations: 32.64 kB / 0.7945 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.5614, allocations: 0.6562 kB / 0.7945 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.5614, allocations: 7.438 kB / 0.7945 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.5616, allocations: 56.69 kB / 0.7945 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.5616, allocations: 0.5469 kB / 0.7945 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.5619, allocations: 55.45 kB / 0.7946 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.5619, allocations: 12.81 kB / 0.7946 GB, free: 44.05 MB / 0.6544 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.0001396/0.562, allocations: 177.2 kB / 0.7948 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.5621, allocations: 23.05 kB / 0.7948 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000569/0.5627, allocations: 297.4 kB / 0.7951 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.5627, allocations: 6.281 kB / 0.7951 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5627, allocations: 0 / 0.7951 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5627, allocations: 4.125 kB / 0.7951 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009186/0.5636, allocations: 0.7508 MB / 0.7958 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.5636, allocations: 1.531 kB / 0.7958 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.5638, allocations: 33.5 kB / 0.7959 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.5638, allocations: 3.188 kB / 0.7959 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.5638, allocations: 6.969 kB / 0.7959 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.5638, allocations: 7.719 kB / 0.7959 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5638, allocations: 0.5 kB / 0.7959 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004793/0.5643, allocations: 368.8 kB / 0.7962 GB, free: 43.4 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.595e-05/0.5644, allocations: 99.77 kB / 0.7963 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.5644, allocations: 17.59 kB / 0.7963 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.5646, allocations: 34.41 kB / 0.7964 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5647, allocations: 37.38 kB / 0.7964 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.5648, allocations: 13.16 kB / 0.7964 GB, free: 43.28 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.216e-05/0.5648, allocations: 135.5 kB / 0.7965 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5649, allocations: 0 / 0.7965 GB, free: 43.2 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000323/0.5652, allocations: 73.7 kB / 0.7966 GB, free: 43.19 MB / 0.6544 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.0001396/0.5653, allocations: 122.1 kB / 0.7967 GB, free: 43.1 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005855/0.5659, allocations: 341.3 kB / 0.7971 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5659, allocations: 0 / 0.7971 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.5662, allocations: 133.3 kB / 0.7972 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.5666, allocations: 35.58 kB / 0.7972 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007369/0.5673, allocations: 453.5 kB / 0.7976 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.5675, allocations: 0.7607 MB / 0.7984 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 9.977e-05/0.5676, allocations: 30.11 kB / 0.7984 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.523e-05/0.5677, allocations: 34.95 kB / 0.7985 GB, free: 42.1 MB / 0.6544 GB Notification: Performance of SimCode: time 3.11e-07/0.5677, allocations: 0 / 0.7985 GB, free: 42.1 MB / 0.6544 GB Notification: Performance of Templates: time 0.007016/0.5747, allocations: 3.094 MB / 0.8015 GB, free: 42 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)