Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.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.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001909/0.001909, allocations: 108 kB / 15.6 MB, free: 132 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.002436/0.002436, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.799/1.799, allocations: 205.1 MB / 222.4 MB, free: 4.562 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.758/1.758, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.002007/0.002007, allocations: 67.88 kB / 0.6715 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2839, allocations: 114.5 MB / 0.7834 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004688/0.2886, allocations: 2.786 MB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002832/0.2915, allocations: 1.592 MB / 0.7876 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.2917, allocations: 11.94 kB / 0.7877 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009636/0.2927, allocations: 315.2 kB / 0.788 GB, free: 8.777 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004325/0.2932, allocations: 186.9 kB / 0.7881 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008187/0.294, allocations: 350.9 kB / 0.7885 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000683/0.2947, allocations: 0.7106 MB / 0.7892 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000518/0.2952, allocations: 471.5 kB / 0.7896 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.2955, allocations: 263 kB / 0.7899 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.2958, allocations: 270.7 kB / 0.7901 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.71e-05/0.2959, allocations: 52 kB / 0.7902 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.2961, allocations: 104 kB / 0.7903 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.2963, allocations: 207.3 kB / 0.7905 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002575/0.2965, allocations: 314 kB / 0.7908 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000776/0.2973, allocations: 0.7552 MB / 0.7915 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2973, allocations: 0 / 0.7915 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2973, allocations: 3.938 kB / 0.7915 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.769e-06/0.2973, allocations: 0 / 0.7915 GB, free: 5.125 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001387/0.2987, allocations: 1.017 MB / 0.7925 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.2988, allocations: 8.031 kB / 0.7925 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.2989, allocations: 91.89 kB / 0.7926 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005818/0.2995, allocations: 492.7 kB / 0.7931 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/0.2996, allocations: 45.69 kB / 0.7931 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.55e-05/0.2996, allocations: 60.06 kB / 0.7932 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008805/0.3005, allocations: 0.613 MB / 0.7938 GB, free: 2.652 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3006, allocations: 4 kB / 0.7938 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.3006, allocations: 24 kB / 0.7938 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.3006, allocations: 12 kB / 0.7938 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006317/0.3013, allocations: 387.5 kB / 0.7942 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.3038, allocations: 2.568 MB / 0.7967 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.3044, allocations: 285.2 kB / 0.797 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.3046, allocations: 148.7 kB / 0.7971 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.3047, allocations: 4 kB / 0.7971 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003606/0.305, allocations: 209.9 kB / 0.7973 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=39): time 2.104e-06/0.305, allocations: 0 / 0.7973 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39): time 0.0008077/0.3058, allocations: 457.5 kB / 0.7977 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.3059, allocations: 89.09 kB / 0.7978 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006157/0.3065, allocations: 0.6285 MB / 0.7984 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.3066, allocations: 45.7 kB / 0.7985 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.3069, allocations: 360.3 kB / 0.7988 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.307, allocations: 102.8 kB / 0.7989 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.3071, allocations: 146.2 kB / 0.7991 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3073, allocations: 378.8 kB / 0.7994 GB, free: 12.67 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.3075, allocations: 133.2 kB / 0.7995 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.3079, allocations: 326.9 kB / 0.7999 GB, free: 12.13 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.3085, allocations: 416.9 kB / 0.8003 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3085, allocations: 0 / 0.8003 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0008003/0.3093, allocations: 0.5146 MB / 0.8008 GB, free: 11.13 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.3093, allocations: 11.92 kB / 0.8008 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3093, allocations: 8 kB / 0.8008 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.3094, allocations: 11.94 kB / 0.8008 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.3096, allocations: 71.78 kB / 0.8009 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.3096, allocations: 12.56 kB / 0.8009 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.3098, allocations: 59.42 kB / 0.8009 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.3099, allocations: 35.94 kB / 0.801 GB, free: 10.92 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 54 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.enableFire,timer.entryTime,$PRE.timer.entryTime,timer.passed,$PRE.timer.passed,transition3.enableFire,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,transition4.enableFire,transition1.enableFire,transition2.enableFire,stateGraphRoot.activeSteps,norm.oldActive,$PRE.norm.oldActive,norm.newActive,$PRE.norm.newActive,norm.outPort[2].available,norm.inPort[2].occupied,norm.localActive,$PRE.norm.localActive,norm.active,cooDow.active,cooDow.oldActive,$PRE.cooDow.oldActive,cooDow.newActive,$PRE.cooDow.newActive,cooDow.outPort[2].available,cooDow.inPort[2].occupied,cooDow.localActive,$PRE.cooDow.localActive,and1.y,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,actMod,$whenCondition4,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * 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.00029/0.3102, allocations: 262.8 kB / 0.8012 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.379e-05/0.3103, allocations: 63.23 kB / 0.8013 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006718/0.3109, allocations: 403.3 kB / 0.8017 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.311, allocations: 11.94 kB / 0.8017 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.311, allocations: 0 / 0.8017 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.311, allocations: 3.984 kB / 0.8017 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.3123, allocations: 1.055 MB / 0.8027 GB, free: 9.055 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3123, allocations: 0 / 0.8027 GB, free: 9.055 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.44e-05/0.3124, allocations: 27.92 kB / 0.8027 GB, free: 9.027 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3124, allocations: 0 / 0.8027 GB, free: 9.027 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.3124, allocations: 19.92 kB / 0.8027 GB, free: 9.008 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.3124, allocations: 4 kB / 0.8027 GB, free: 9.004 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3124, allocations: 0 / 0.8027 GB, free: 9.004 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006152/0.3131, allocations: 479.2 kB / 0.8032 GB, free: 8.52 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.3132, allocations: 136.2 kB / 0.8033 GB, free: 8.367 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.3133, allocations: 12 kB / 0.8033 GB, free: 8.355 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.3134, allocations: 11.98 kB / 0.8034 GB, free: 8.344 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3135, allocations: 43.95 kB / 0.8034 GB, free: 8.301 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.3136, allocations: 19.98 kB / 0.8034 GB, free: 8.281 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004133/0.314, allocations: 411 kB / 0.8038 GB, free: 7.887 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.314, allocations: 0 / 0.8038 GB, free: 7.887 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004903/0.3145, allocations: 131.6 kB / 0.8039 GB, free: 7.758 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 37 (off.active,norm.active,cooDow.localActive,cooDow.active,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition1,actMod,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,and1.y,cooDow.inPort[2].occupied,cooDow.outPort[2].available,cooDow.newActive,cooDow.oldActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,norm.newActive,norm.oldActive,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.localActive,off.newActive,off.oldActive,transition3.enableFire,timer.passed,timer.entryTime) * Number of discrete states: 6 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,timer.entryTime,norm.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001044/0.3155, allocations: 441.7 kB / 0.8044 GB, free: 7.473 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007932/0.3163, allocations: 422 kB / 0.8048 GB, free: 7.059 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3163, allocations: 1.562 kB / 0.8048 GB, free: 7.059 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.3166, allocations: 179.8 kB / 0.8049 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.3172, allocations: 104.7 kB / 0.805 GB, free: 6.785 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.3188, allocations: 1.111 MB / 0.8061 GB, free: 5.645 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.3193, allocations: 0.9338 MB / 0.807 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002229/0.3196, allocations: 72.34 kB / 0.8071 GB, free: 4.617 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.3197, allocations: 43.42 kB / 0.8071 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of SimCode: time 3.21e-07/0.3197, allocations: 0 / 0.8071 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of Templates: time 0.01146/0.3312, allocations: 5.435 MB / 0.8124 GB, free: 15.19 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1)