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.001358/0.001358, allocations: 112.5 kB / 16.37 MB, free: 5.996 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.001473/0.001473, allocations: 190.4 kB / 17.31 MB, free: 5.605 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.458/1.458, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.781/1.781, allocations: 292.3 MB / 0.5496 GB, free: 17.6 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.00144/0.00144, allocations: 71.83 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2489, allocations: 114.6 MB / 0.7848 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003729/0.2527, allocations: 2.023 MB / 0.7868 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.2541, allocations: 0.7296 MB / 0.7875 GB, free: 420 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.2543, allocations: 4 kB / 0.7875 GB, free: 416 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.2545, allocations: 35.55 kB / 0.7875 GB, free: 380 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.2546, allocations: 35.66 kB / 0.7876 GB, free: 344 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.2551, allocations: 155.8 kB / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.4349/0.69, allocations: 408.5 kB / 0.7881 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000423/0.6905, allocations: 246 kB / 0.7883 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.6907, allocations: 136.1 kB / 0.7885 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.6909, allocations: 149.5 kB / 0.7886 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.6909, allocations: 41.94 kB / 0.7886 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.691, allocations: 46.06 kB / 0.7887 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.609e-05/0.6911, allocations: 86.86 kB / 0.7888 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.6913, allocations: 149.5 kB / 0.7889 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004248/0.6917, allocations: 430.5 kB / 0.7893 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.6917, allocations: 0 / 0.7893 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6917, allocations: 0.5938 kB / 0.7893 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.6917, allocations: 0 / 0.7893 GB, free: 46.89 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.0008524/0.6926, allocations: 0.6019 MB / 0.7899 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.6926, allocations: 13.84 kB / 0.7899 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.315e-05/0.6927, allocations: 34.98 kB / 0.79 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.693, allocations: 267.5 kB / 0.7902 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.693, allocations: 29.81 kB / 0.7902 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.6931, allocations: 34.7 kB / 0.7903 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005722/0.6937, allocations: 333.6 kB / 0.7906 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.6937, allocations: 7.594 kB / 0.7906 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.6937, allocations: 14.44 kB / 0.7906 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.6937, allocations: 10.56 kB / 0.7906 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005386/0.6943, allocations: 248.3 kB / 0.7909 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.6958, allocations: 0.9407 MB / 0.7918 GB, free: 45.75 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006081/0.6964, allocations: 269 kB / 0.792 GB, free: 45.72 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.6966, allocations: 119.5 kB / 0.7922 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.6967, allocations: 3.531 kB / 0.7922 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003817/0.6971, allocations: 182.9 kB / 0.7923 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=32): time 2.815e-06/0.6971, allocations: 2.406 kB / 0.7923 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of matching and sorting (n=32): time 0.0008157/0.6979, allocations: 353.2 kB / 0.7927 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.698, allocations: 63.17 kB / 0.7927 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.6981, allocations: 196.2 kB / 0.7929 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.6982, allocations: 43.02 kB / 0.793 GB, free: 45.41 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.221e-05/0.6983, allocations: 152.8 kB / 0.7931 GB, free: 45.31 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.544e-05/0.6984, allocations: 79.72 kB / 0.7932 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.6985, allocations: 92.92 kB / 0.7933 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.125e-05/0.6986, allocations: 339.1 kB / 0.7936 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.6988, allocations: 111.6 kB / 0.7937 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.6991, allocations: 164.7 kB / 0.7939 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004133/0.6995, allocations: 264.5 kB / 0.7941 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.6995, allocations: 3.938 kB / 0.7941 GB, free: 44.79 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006007/0.7001, allocations: 367.3 kB / 0.7945 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.7001, allocations: 33.3 kB / 0.7945 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.7002, allocations: 2.391 kB / 0.7945 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.7002, allocations: 8.344 kB / 0.7945 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.7004, allocations: 45.22 kB / 0.7945 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.7004, allocations: 0 / 0.7945 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.7006, allocations: 62.56 kB / 0.7946 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.7007, allocations: 14.19 kB / 0.7946 GB, free: 44.66 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.0001566/0.7009, allocations: 177 kB / 0.7948 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.7009, allocations: 19.59 kB / 0.7948 GB, free: 44.53 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006/0.7015, allocations: 297.2 kB / 0.7951 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.7015, allocations: 3.719 kB / 0.7951 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.7015, allocations: 0.7031 kB / 0.7951 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.7015, allocations: 4.094 kB / 0.7951 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009512/0.7025, allocations: 0.7586 MB / 0.7958 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.7025, allocations: 0 / 0.7958 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.7026, allocations: 34.42 kB / 0.7959 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.7027, allocations: 0 / 0.7959 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.7027, allocations: 9.812 kB / 0.7959 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.7027, allocations: 3.938 kB / 0.7959 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.7027, allocations: 5.188 kB / 0.7959 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004823/0.7032, allocations: 368.3 kB / 0.7962 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.7032, allocations: 99.67 kB / 0.7963 GB, free: 43.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.7033, allocations: 11.75 kB / 0.7963 GB, free: 43.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.7035, allocations: 38.94 kB / 0.7964 GB, free: 43.89 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.7036, allocations: 40.25 kB / 0.7964 GB, free: 43.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.7036, allocations: 7.219 kB / 0.7964 GB, free: 43.89 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.699e-05/0.7037, allocations: 132.3 kB / 0.7966 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7037, allocations: 0 / 0.7966 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003218/0.7041, allocations: 69.11 kB / 0.7966 GB, free: 43.81 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.0001605/0.7042, allocations: 125.5 kB / 0.7967 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005751/0.7048, allocations: 342.7 kB / 0.7971 GB, free: 43.56 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7048, allocations: 0 / 0.7971 GB, free: 43.56 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002453/0.7051, allocations: 133 kB / 0.7972 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.7054, allocations: 39.52 kB / 0.7972 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007666/0.7062, allocations: 481.6 kB / 0.7977 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.7064, allocations: 0.7567 MB / 0.7984 GB, free: 42.51 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.151e-05/0.7065, allocations: 29.22 kB / 0.7985 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of SimCode: time 6.11e-07/0.7065, allocations: 0 / 0.7985 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of Templates: time 0.006332/0.7128, allocations: 3.463 MB / 0.8018 GB, free: 42.27 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 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)