Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.006849/0.006849, allocations: 103.9 kB / 15.73 MB, free: 6.039 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.001331/0.001331, allocations: 193.6 kB / 16.67 MB, free: 5.973 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.835/1.835, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.569/1.569, allocations: 251.7 MB / 0.5094 GB, free: 3.023 MB / 414.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.001425/0.001425, allocations: 70.09 kB / 0.7258 GB, free: 8.965 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2276, allocations: 104.7 MB / 0.8281 GB, free: 160 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.00444/0.232, allocations: 2.895 MB / 0.8309 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002803/0.2349, allocations: 1.619 MB / 0.8325 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002139/0.2351, allocations: 11.94 kB / 0.8325 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0009552/0.2361, allocations: 310.5 kB / 0.8328 GB, free: 11.3 MB / 0.6544 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.0004321/0.2365, allocations: 182.9 kB / 0.8329 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008167/0.2373, allocations: 350.6 kB / 0.8333 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0008871/0.2382, allocations: 0.734 MB / 0.834 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005551/0.2388, allocations: 464.3 kB / 0.8344 GB, free: 9.59 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.2391, allocations: 271 kB / 0.8347 GB, free: 9.324 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003353/0.2394, allocations: 274.7 kB / 0.835 GB, free: 9.055 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.427e-05/0.2395, allocations: 52 kB / 0.835 GB, free: 9.004 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.2397, allocations: 108 kB / 0.8351 GB, free: 8.898 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.24, allocations: 211.3 kB / 0.8353 GB, free: 8.691 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002765/0.2403, allocations: 318 kB / 0.8356 GB, free: 8.379 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000867/0.2411, allocations: 0.8056 MB / 0.8364 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2412, allocations: 0 / 0.8364 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2412, allocations: 0 / 0.8364 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.2412, allocations: 3.938 kB / 0.8364 GB, free: 7.566 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001577/0.2428, allocations: 1.021 MB / 0.8374 GB, free: 6.488 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.2428, allocations: 8.031 kB / 0.8374 GB, free: 6.48 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.243, allocations: 99.8 kB / 0.8375 GB, free: 6.383 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007101/0.2437, allocations: 488.7 kB / 0.838 GB, free: 5.859 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.287e-05/0.2438, allocations: 75.56 kB / 0.838 GB, free: 5.781 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.019e-05/0.2439, allocations: 63.94 kB / 0.8381 GB, free: 5.719 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008861/0.2448, allocations: 0.6091 MB / 0.8387 GB, free: 5.047 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.2448, allocations: 3.938 kB / 0.8387 GB, free: 5.043 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.439e-05/0.2449, allocations: 27.98 kB / 0.8387 GB, free: 5.016 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.2449, allocations: 12 kB / 0.8387 GB, free: 5.004 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00063/0.2456, allocations: 383.6 kB / 0.8391 GB, free: 4.633 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/0.2485, allocations: 2.553 MB / 0.8416 GB, free: 1.965 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006026/0.2491, allocations: 270.9 kB / 0.8419 GB, free: 1.691 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.2494, allocations: 136.8 kB / 0.842 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.2494, allocations: 11.94 kB / 0.842 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004239/0.2499, allocations: 209.7 kB / 0.8422 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=40): time 2.495e-06/0.2499, allocations: 0 / 0.8422 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of matching and sorting (n=40): time 0.000852/0.2508, allocations: 453.8 kB / 0.8426 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.2508, allocations: 81.11 kB / 0.8427 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007008/0.2515, allocations: 0.6364 MB / 0.8433 GB, free: 132 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.026e-05/0.2516, allocations: 49.64 kB / 0.8434 GB, free: 76 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003832/0.252, allocations: 372.2 kB / 0.8437 GB, free: 15.7 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 8.749e-05/0.2521, allocations: 94.8 kB / 0.8438 GB, free: 15.61 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.2523, allocations: 154.3 kB / 0.844 GB, free: 15.45 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0002806/0.2526, allocations: 378.8 kB / 0.8443 GB, free: 15.07 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002435/0.2528, allocations: 133.2 kB / 0.8445 GB, free: 14.94 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003941/0.2532, allocations: 343.8 kB / 0.8448 GB, free: 14.52 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006211/0.2538, allocations: 429.6 kB / 0.8452 GB, free: 14.02 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.2539, allocations: 7.938 kB / 0.8452 GB, free: 14.01 MB / 0.67 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.000809/0.2547, allocations: 0.5338 MB / 0.8457 GB, free: 13.46 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.2547, allocations: 11.94 kB / 0.8457 GB, free: 13.45 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2547, allocations: 4 kB / 0.8457 GB, free: 13.45 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.2548, allocations: 8.75 kB / 0.8458 GB, free: 13.44 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.255, allocations: 79.77 kB / 0.8458 GB, free: 13.36 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.255, allocations: 15.94 kB / 0.8458 GB, free: 13.35 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.2553, allocations: 67.44 kB / 0.8459 GB, free: 13.28 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.2553, allocations: 28 kB / 0.8459 GB, free: 13.25 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,timer.yAcc,$PRE.timer.yAcc,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,timer.reset_internal,$PRE.timer.reset_internal,transition5.enableFire,timer.entryTime,$PRE.timer.entryTime,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,transition2.localCondition,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,$whenCondition3,$whenCondition2,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 80 * 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.000347/0.2557, allocations: 258.8 kB / 0.8462 GB, free: 12.99 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.022e-05/0.2558, allocations: 71.09 kB / 0.8462 GB, free: 12.92 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007354/0.2565, allocations: 402.8 kB / 0.8466 GB, free: 12.52 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.2565, allocations: 7.984 kB / 0.8466 GB, free: 12.51 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.2565, allocations: 3.938 kB / 0.8466 GB, free: 12.51 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2566, allocations: 4 kB / 0.8466 GB, free: 12.5 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.2582, allocations: 1.032 MB / 0.8477 GB, free: 11.41 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2582, allocations: 0 / 0.8477 GB, free: 11.41 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.2583, allocations: 27.92 kB / 0.8477 GB, free: 11.38 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2583, allocations: 0 / 0.8477 GB, free: 11.38 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.2584, allocations: 12 kB / 0.8477 GB, free: 11.37 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.2584, allocations: 8 kB / 0.8477 GB, free: 11.36 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2584, allocations: 0 / 0.8477 GB, free: 11.36 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006975/0.2591, allocations: 479.8 kB / 0.8482 GB, free: 10.88 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.2592, allocations: 132.2 kB / 0.8483 GB, free: 10.73 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.77e-05/0.2593, allocations: 12 kB / 0.8483 GB, free: 10.72 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.2595, allocations: 15.92 kB / 0.8483 GB, free: 10.7 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.2596, allocations: 43.94 kB / 0.8484 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.772e-05/0.2597, allocations: 23.98 kB / 0.8484 GB, free: 10.64 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0005139/0.2602, allocations: 411 kB / 0.8488 GB, free: 10.24 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2602, allocations: 0 / 0.8488 GB, free: 10.24 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.000624/0.2608, allocations: 139.6 kB / 0.8489 GB, free: 10.1 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 38 (off.active,norm.active,cooDow.localActive,cooDow.active,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition4,$whenCondition2,$whenCondition3,$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.localCondition,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.localActive,off.newActive,off.oldActive,transition3.enableFire,timer.entryTime,timer.yAcc) * Number of discrete states: 6 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,norm.newActive,off.newActive,timer.y,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 38 * 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.001279/0.2621, allocations: 453.3 kB / 0.8493 GB, free: 9.809 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0007994/0.2629, allocations: 385.9 kB / 0.8497 GB, free: 9.43 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.263, allocations: 0 / 0.8497 GB, free: 9.43 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0002767/0.2632, allocations: 173.1 kB / 0.8499 GB, free: 9.262 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.2639, allocations: 95.91 kB / 0.85 GB, free: 9.176 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.2659, allocations: 1.103 MB / 0.851 GB, free: 8.039 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006408/0.2665, allocations: 0.9377 MB / 0.852 GB, free: 7.078 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.000226/0.2668, allocations: 80.38 kB / 0.852 GB, free: 6.996 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.2669, allocations: 47.42 kB / 0.8521 GB, free: 6.949 MB / 0.67 GB Notification: Performance of SimCode: time 6.21e-07/0.2669, allocations: 0 / 0.8521 GB, free: 6.949 MB / 0.67 GB Notification: Performance of Templates: time 0.01184/0.2788, allocations: 5.483 MB / 0.8574 GB, free: 1.516 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1)