Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_latest_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_latest_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.001401/0.001401, allocations: 100.1 kB / 15.88 MB, free: 12 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.001749/0.001749, allocations: 198 kB / 16.79 MB, free: 6.809 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.38/1.38, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.736/2.736, allocations: 461.8 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 66.03 kB / 0.899 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3031, allocations: 157.4 MB / 1.053 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004099/0.3072, allocations: 2.886 MB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00251/0.3098, allocations: 1.67 MB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.31, allocations: 11.94 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009628/0.311, allocations: 287.3 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003972/0.3114, allocations: 159.3 kB / 1.058 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008233/0.3122, allocations: 330.5 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007764/0.313, allocations: 0.6988 MB / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005056/0.3135, allocations: 448.6 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.3138, allocations: 251 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.3141, allocations: 270.8 kB / 1.06 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.129e-05/0.3142, allocations: 36 kB / 1.06 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002106/0.3144, allocations: 87.91 kB / 1.06 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.3146, allocations: 179.3 kB / 1.06 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.3148, allocations: 310 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.3153, allocations: 0.5614 MB / 1.061 GB, free: 144 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3154, allocations: 0 / 1.061 GB, free: 144 kB / 0.8106 GB Notification: Performance of FrontEnd: time 8.72e-07/0.3154, allocations: 0 / 1.061 GB, free: 144 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.3154, allocations: 0 / 1.061 GB, free: 144 kB / 0.8106 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.001381/0.3168, allocations: 1.029 MB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3168, allocations: 8.031 kB / 1.062 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.317, allocations: 87.91 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005988/0.3176, allocations: 488.8 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.933e-05/0.3176, allocations: 57.69 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.6e-05/0.3177, allocations: 67.86 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000922/0.3186, allocations: 0.613 MB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3187, allocations: 3.938 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.3187, allocations: 27.94 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.3187, allocations: 12 kB / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006448/0.3194, allocations: 383.5 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.322, allocations: 2.588 MB / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/0.3227, allocations: 380.7 kB / 1.066 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002545/0.3229, allocations: 173.1 kB / 1.066 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.323, allocations: 8 kB / 1.066 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004603/0.3234, allocations: 289.4 kB / 1.067 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 2.294e-06/0.3235, allocations: 4 kB / 1.067 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.0009805/0.3244, allocations: 0.4951 MB / 1.067 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.3246, allocations: 229.5 kB / 1.067 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006682/0.3253, allocations: 0.6079 MB / 1.068 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.3253, allocations: 53.69 kB / 1.068 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.3256, allocations: 340.6 kB / 1.068 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3257, allocations: 110.6 kB / 1.069 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.3259, allocations: 154.6 kB / 1.069 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3261, allocations: 378.8 kB / 1.069 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.3264, allocations: 145.2 kB / 1.069 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.3268, allocations: 342.9 kB / 1.069 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.3273, allocations: 429 kB / 1.07 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3274, allocations: 4 kB / 1.07 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008594/0.3282, allocations: 0.5382 MB / 1.07 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3283, allocations: 8 kB / 1.07 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.3283, allocations: 8 kB / 1.07 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.3283, allocations: 8 kB / 1.07 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.3286, allocations: 75.77 kB / 1.071 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.736e-05/0.3286, allocations: 15.94 kB / 1.071 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.3289, allocations: 63.36 kB / 1.071 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.3289, allocations: 28.31 kB / 1.071 GB, free: 5.34 MB / 0.8262 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.0003673/0.3293, allocations: 283.5 kB / 1.071 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.3294, allocations: 67.16 kB / 1.071 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007492/0.3302, allocations: 403.2 kB / 1.071 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3302, allocations: 4 kB / 1.071 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3302, allocations: 7.938 kB / 1.071 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.3302, allocations: 7.984 kB / 1.071 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.3317, allocations: 1.071 MB / 1.072 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3318, allocations: 3.938 kB / 1.072 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.3319, allocations: 27.92 kB / 1.072 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.3319, allocations: 7.938 kB / 1.072 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.3319, allocations: 15.98 kB / 1.072 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.3319, allocations: 4 kB / 1.072 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3319, allocations: 4 kB / 1.072 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/0.3327, allocations: 0.5329 MB / 1.073 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.3328, allocations: 140.2 kB / 1.073 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.345e-05/0.3329, allocations: 16 kB / 1.073 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.333, allocations: 15.98 kB / 1.073 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.3332, allocations: 43.94 kB / 1.073 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/0.3332, allocations: 19.98 kB / 1.073 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004377/0.3336, allocations: 402.8 kB / 1.074 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3336, allocations: 4 kB / 1.074 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005576/0.3342, allocations: 139.5 kB / 1.074 GB, free: 2.02 MB / 0.8262 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.active,cooDow.localActive,$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.001088/0.3353, allocations: 454.2 kB / 1.074 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007651/0.3361, allocations: 409.8 kB / 1.075 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.3361, allocations: 0 / 1.075 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002985/0.3364, allocations: 195.6 kB / 1.075 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.337, allocations: 97.88 kB / 1.075 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.3391, allocations: 1.391 MB / 1.076 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.3396, allocations: 0.938 MB / 1.077 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3397, allocations: 43.42 kB / 1.077 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.3398, allocations: 0 / 1.077 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of Templates: time 0.01124/0.351, allocations: 7.814 MB / 1.085 GB, free: 6.824 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches