Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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_1.6_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.001517/0.001517, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001688/0.001688, allocations: 191.1 kB / 16.14 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.731/2.731, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 62.69 kB / 0.9114 GB, free: 33.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.351, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003473/0.3545, allocations: 2.094 MB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.3558, allocations: 0.7052 MB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.3559, allocations: 4 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.3561, allocations: 23.8 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.82e-05/0.3562, allocations: 27.72 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.3566, allocations: 139.9 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.357, allocations: 375.2 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003157/0.3573, allocations: 220.1 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.3574, allocations: 119.5 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.3576, allocations: 131.4 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.3577, allocations: 24 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.223e-05/0.3577, allocations: 24 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.3578, allocations: 59.77 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.358, allocations: 139.2 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.3583, allocations: 387.1 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3584, allocations: 4 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.01e-07/0.3584, allocations: 3.938 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.3584, allocations: 4 kB / 1.072 GB, free: 6.434 MB / 0.8262 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.0009389/0.3593, allocations: 0.599 MB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3594, allocations: 12.03 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.582e-05/0.3594, allocations: 36.56 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.3597, allocations: 262.8 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.3598, allocations: 32.97 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.3598, allocations: 40.31 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/0.3604, allocations: 333.2 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3604, allocations: 0 / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.3605, allocations: 15.94 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.3605, allocations: 8 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005601/0.3611, allocations: 254.1 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.3626, allocations: 0.955 MB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006406/0.3632, allocations: 266.1 kB / 1.075 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.3635, allocations: 120.8 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.3635, allocations: 4 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005168/0.364, allocations: 187.7 kB / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 2.265e-06/0.364, allocations: 0 / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008154/0.3649, allocations: 349.3 kB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.3649, allocations: 55.41 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3651, allocations: 211.2 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.3652, allocations: 41.69 kB / 1.076 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3653, allocations: 156.5 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.3653, allocations: 78.86 kB / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3655, allocations: 90.11 kB / 1.076 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3656, allocations: 342.8 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.3659, allocations: 104.8 kB / 1.076 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.3662, allocations: 169.5 kB / 1.076 GB, free: 1.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004863/0.3667, allocations: 258.6 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3667, allocations: 0 / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007721/0.3675, allocations: 370.8 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.088e-05/0.3675, allocations: 29.7 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3675, allocations: 4.156 kB / 1.077 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3676, allocations: 7.984 kB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.3678, allocations: 47.84 kB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.3678, allocations: 4 kB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.3681, allocations: 59.64 kB / 1.077 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.3682, allocations: 11.94 kB / 1.077 GB, free: 0.6992 MB / 0.8262 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.condition,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.condition,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.0002275/0.3684, allocations: 181.7 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.3685, allocations: 19.72 kB / 1.077 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006934/0.3692, allocations: 300.3 kB / 1.078 GB, free: 208 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3692, allocations: 7.984 kB / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3692, allocations: 0 / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3692, allocations: 4 kB / 1.078 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.3704, allocations: 0.748 MB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3704, allocations: 0 / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.3706, allocations: 27.98 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3706, allocations: 0 / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.3706, allocations: 7.984 kB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-05/0.3707, allocations: 11.94 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3707, allocations: 7.875 kB / 1.078 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.3712, allocations: 367.1 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.407e-05/0.3713, allocations: 100.9 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.3714, allocations: 4 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.3716, allocations: 43.88 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.3718, allocations: 39.94 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.3718, allocations: 8 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001162/0.3719, allocations: 135.7 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3719, allocations: 0 / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003383/0.3723, allocations: 79.69 kB / 1.079 GB, free: 14.54 MB / 0.8419 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 (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.0001957/0.3725, allocations: 117.4 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006677/0.3731, allocations: 338.9 kB / 1.08 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3731, allocations: 0 / 1.08 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.3734, allocations: 135.8 kB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.3738, allocations: 40.28 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009683/0.3748, allocations: 0.5361 MB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.3752, allocations: 0.7564 MB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001271/0.3753, allocations: 30.28 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-05/0.3754, allocations: 27.42 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.3754, allocations: 4 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of Templates: time 0.006313/0.3817, allocations: 2.859 MB / 1.084 GB, free: 9.645 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)