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.0008711/0.0008715, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.006578/0.006578, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.429/1.429, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.932/2.932, allocations: 473.4 MB / 0.7469 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003648, allocations: 12.53 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3065, allocations: 162.2 MB / 1.074 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00272/0.3093, allocations: 1.739 MB / 1.076 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.3107, allocations: 0.6935 MB / 1.077 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.3109, allocations: 8 kB / 1.077 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.311, allocations: 27.73 kB / 1.077 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.3112, allocations: 27.78 kB / 1.077 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.3117, allocations: 139.9 kB / 1.077 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.3121, allocations: 367.3 kB / 1.077 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003678/0.3125, allocations: 211.5 kB / 1.077 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.3126, allocations: 99.58 kB / 1.077 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.3128, allocations: 123.3 kB / 1.077 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.3129, allocations: 12 kB / 1.077 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.101e-05/0.313, allocations: 24 kB / 1.078 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.132e-05/0.313, allocations: 55.75 kB / 1.078 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001385/0.3132, allocations: 145 kB / 1.078 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003946/0.3136, allocations: 371 kB / 1.078 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3136, allocations: 3.938 kB / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.885e-06/0.3136, allocations: 0 / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.3136, allocations: 0 / 1.078 GB, free: 3.531 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.0009841/0.3146, allocations: 0.5445 MB / 1.079 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3147, allocations: 12.03 kB / 1.079 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.48e-05/0.3148, allocations: 32.56 kB / 1.079 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.3151, allocations: 275.7 kB / 1.079 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.3152, allocations: 29.03 kB / 1.079 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.696e-05/0.3152, allocations: 32.38 kB / 1.079 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000696/0.316, allocations: 341.2 kB / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.316, allocations: 0 / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.316, allocations: 12 kB / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.316, allocations: 8 kB / 1.079 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.3166, allocations: 270 kB / 1.08 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.3182, allocations: 0.9552 MB / 1.08 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.3189, allocations: 274.9 kB / 1.081 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.3192, allocations: 128.7 kB / 1.081 GB, free: 488 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3192, allocations: 4 kB / 1.081 GB, free: 484 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004441/0.3196, allocations: 187.8 kB / 1.081 GB, free: 284 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=32): time 2.134e-06/0.3197, allocations: 0 / 1.081 GB, free: 284 kB / 0.8262 GB Notification: Performance of matching and sorting (n=32): time 0.0008874/0.3205, allocations: 377.2 kB / 1.081 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.3206, allocations: 59.41 kB / 1.081 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.3208, allocations: 203.2 kB / 1.082 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.794e-05/0.3209, allocations: 45.7 kB / 1.082 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.321, allocations: 144.6 kB / 1.082 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.264e-05/0.3211, allocations: 90.83 kB / 1.082 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.3213, allocations: 53.69 kB / 1.082 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001963/0.3215, allocations: 346.8 kB / 1.082 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.3218, allocations: 108.8 kB / 1.082 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003591/0.3222, allocations: 173.5 kB / 1.083 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006312/0.3228, allocations: 266.6 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.3228, allocations: 4 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000887/0.3237, allocations: 382.8 kB / 1.083 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.134e-05/0.3238, allocations: 33.7 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3238, allocations: 3.984 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.3239, allocations: 7.938 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.3241, allocations: 47.91 kB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.3241, allocations: 4 kB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.3244, allocations: 55.69 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/0.3245, allocations: 16 kB / 1.083 GB, free: 13.78 MB / 0.8419 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.000267/0.3248, allocations: 177.7 kB / 1.084 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/0.3248, allocations: 23.72 kB / 1.084 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006928/0.3255, allocations: 308.3 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.3256, allocations: 4 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3256, allocations: 0 / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3256, allocations: 3.984 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.3269, allocations: 0.7675 MB / 1.085 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3269, allocations: 0 / 1.085 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.327, allocations: 35.92 kB / 1.085 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.327, allocations: 0 / 1.085 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.3271, allocations: 15.92 kB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3271, allocations: 3.938 kB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.3271, allocations: 4 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.3277, allocations: 379.1 kB / 1.085 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.3278, allocations: 96.84 kB / 1.085 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.3278, allocations: 12 kB / 1.085 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.3281, allocations: 39.91 kB / 1.085 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.3282, allocations: 43.94 kB / 1.085 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.3282, allocations: 4 kB / 1.085 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001026/0.3283, allocations: 135.8 kB / 1.085 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3284, allocations: 0 / 1.085 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003643/0.3287, allocations: 75.73 kB / 1.085 GB, free: 11.58 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.0001854/0.3289, allocations: 121.4 kB / 1.086 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006992/0.3296, allocations: 346.9 kB / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3296, allocations: 0 / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002926/0.3299, allocations: 148.1 kB / 1.086 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.3303, allocations: 36.48 kB / 1.086 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009078/0.3312, allocations: 0.5389 MB / 1.087 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.3316, allocations: 0.7564 MB / 1.087 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001203/0.3317, allocations: 34.2 kB / 1.087 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.676e-05/0.3318, allocations: 27.44 kB / 1.087 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of SimCode: time 6.31e-07/0.3318, allocations: 0 / 1.087 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of Templates: time 0.006823/0.3386, allocations: 2.825 MB / 1.09 GB, free: 6.703 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)