Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_10_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.00158/0.00158, allocations: 102 kB / 16.27 MB, free: 5.859 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.001715/0.001716, allocations: 185.3 kB / 17.19 MB, free: 5.508 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.427/1.427, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.6/2.6, allocations: 437.1 MB / 0.711 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 68.2 kB / 0.8699 GB, free: 2.234 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3031, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004858/0.308, allocations: 2.788 MB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002898/0.3109, allocations: 1.673 MB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002206/0.3112, allocations: 15.94 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.3123, allocations: 310.9 kB / 1.023 GB, free: 5.867 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004757/0.3128, allocations: 179.8 kB / 1.023 GB, free: 5.691 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009805/0.3138, allocations: 383.9 kB / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0008695/0.3146, allocations: 0.7185 MB / 1.024 GB, free: 4.598 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006381/0.3153, allocations: 479.6 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.3156, allocations: 271 kB / 1.025 GB, free: 3.859 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/0.316, allocations: 286.6 kB / 1.025 GB, free: 3.578 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.391e-05/0.3161, allocations: 56 kB / 1.025 GB, free: 3.523 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002505/0.3163, allocations: 104 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.3166, allocations: 203.3 kB / 1.025 GB, free: 3.223 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003208/0.3169, allocations: 326 kB / 1.026 GB, free: 2.902 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008909/0.3178, allocations: 0.7708 MB / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3178, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3178, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.3178, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.795 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.001659/0.3195, allocations: 1.035 MB / 1.027 GB, free: 1.043 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3196, allocations: 16.86 kB / 1.027 GB, free: 1.027 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.3197, allocations: 87.91 kB / 1.027 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006647/0.3204, allocations: 496.8 kB / 1.028 GB, free: 420 kB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.431e-05/0.3205, allocations: 45.69 kB / 1.028 GB, free: 376 kB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.449e-05/0.3206, allocations: 63.92 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.3216, allocations: 0.6207 MB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3216, allocations: 4 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.741e-05/0.3217, allocations: 20 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.3217, allocations: 16 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006895/0.3224, allocations: 379.5 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.3253, allocations: 2.584 MB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007341/0.3261, allocations: 376.2 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.3264, allocations: 185 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.3264, allocations: 8 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005111/0.327, allocations: 293.4 kB / 1.032 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=44): time 6.121e-06/0.327, allocations: 7.984 kB / 1.032 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=44): time 0.001028/0.328, allocations: 0.491 MB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.3282, allocations: 221.6 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007718/0.329, allocations: 0.6118 MB / 1.034 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.329, allocations: 53.69 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.3294, allocations: 341.2 kB / 1.034 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.3295, allocations: 114.6 kB / 1.034 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/0.3297, allocations: 150.3 kB / 1.034 GB, free: 9.52 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002064/0.3299, allocations: 378.8 kB / 1.035 GB, free: 9.141 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.3302, allocations: 141.2 kB / 1.035 GB, free: 9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004557/0.3307, allocations: 343.8 kB / 1.035 GB, free: 8.582 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006448/0.3314, allocations: 433 kB / 1.035 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3314, allocations: 0 / 1.035 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0009302/0.3323, allocations: 0.538 MB / 1.036 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.3323, allocations: 8 kB / 1.036 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3323, allocations: 4 kB / 1.036 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.3324, allocations: 19.92 kB / 1.036 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.3326, allocations: 67.84 kB / 1.036 GB, free: 7.438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.3327, allocations: 16.44 kB / 1.036 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.3329, allocations: 71.36 kB / 1.036 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.333, allocations: 28 kB / 1.036 GB, free: 7.324 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 64 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition2.t_start,$PRE.transition2.t_start,transition1.t_start,$PRE.transition1.t_start,transition4.t_start,$PRE.transition4.t_start,transition3.t_start,$PRE.transition3.t_start,transition5.t_start,$PRE.transition5.t_start,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 (82): * Single equations (assignments): 82 * 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.0003628/0.3333, allocations: 266.9 kB / 1.036 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.3335, allocations: 71.16 kB / 1.037 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007635/0.3342, allocations: 403.2 kB / 1.037 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3343, allocations: 12 kB / 1.037 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.3343, allocations: 7.922 kB / 1.037 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.3343, allocations: 7.984 kB / 1.037 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.3359, allocations: 1.059 MB / 1.038 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/0.336, allocations: 7.922 kB / 1.038 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.3361, allocations: 35.92 kB / 1.038 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.3361, allocations: 0 / 1.038 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.3361, allocations: 12 kB / 1.038 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.155e-06/0.3361, allocations: 11.92 kB / 1.038 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3362, allocations: 3.938 kB / 1.038 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007794/0.3369, allocations: 0.5291 MB / 1.039 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3371, allocations: 136.2 kB / 1.039 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.954e-05/0.3372, allocations: 16 kB / 1.039 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3373, allocations: 15.98 kB / 1.039 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.3375, allocations: 47.88 kB / 1.039 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.3375, allocations: 23.98 kB / 1.039 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005061/0.338, allocations: 402.8 kB / 1.039 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.338, allocations: 0 / 1.039 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005629/0.3386, allocations: 139.5 kB / 1.039 GB, free: 4.02 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 42 (transition5.t_start,transition3.t_start,transition4.t_start,transition1.t_start,transition2.t_start,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: 11 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,timer.entryTime,norm.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled,transition2.t_start,transition1.t_start,transition4.t_start,transition3.t_start,transition5.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.001598/0.3402, allocations: 452.8 kB / 1.04 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009484/0.3412, allocations: 441.1 kB / 1.04 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3412, allocations: 0 / 1.04 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.3415, allocations: 198 kB / 1.04 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.3422, allocations: 107.3 kB / 1.04 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.3442, allocations: 1.195 MB / 1.042 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006476/0.3448, allocations: 0.9299 MB / 1.043 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.345, allocations: 51.42 kB / 1.043 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of SimCode: time 4.2e-07/0.345, allocations: 0 / 1.043 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of Templates: time 0.01294/0.3579, allocations: 7.818 MB / 1.05 GB, free: 8.977 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches