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.001691/0.001691, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00194/0.00194, allocations: 199.4 kB / 16.14 MB, free: 6.629 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.555/1.555, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.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.828/2.828, allocations: 437 MB / 0.7099 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 71.89 kB / 0.8686 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7679/0.7699, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.005058/0.775, allocations: 2.888 MB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003094/0.7781, allocations: 1.685 MB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.7784, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.7794, allocations: 290.3 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004007/0.7799, allocations: 155.3 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008982/0.7808, allocations: 319.6 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008585/0.7817, allocations: 0.7066 MB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006449/0.7823, allocations: 440 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.7826, allocations: 251 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003502/0.783, allocations: 282.6 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.212e-05/0.7831, allocations: 36 kB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.7833, allocations: 83.95 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.7836, allocations: 191.3 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003409/0.7839, allocations: 310 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008023/0.7847, allocations: 0.7161 MB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7847, allocations: 0 / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.032e-06/0.7848, allocations: 8 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.7848, allocations: 0 / 1.025 GB, free: 10.42 MB / 0.7794 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.001674/0.7865, allocations: 1.027 MB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.7865, allocations: 8.031 kB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.7867, allocations: 95.84 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006876/0.7874, allocations: 488.8 kB / 1.026 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.682e-05/0.7874, allocations: 45.69 kB / 1.026 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.886e-05/0.7875, allocations: 63.92 kB / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.7886, allocations: 0.6285 MB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.7886, allocations: 4 kB / 1.027 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.967e-05/0.7887, allocations: 19.94 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.7887, allocations: 16 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007435/0.7895, allocations: 379.5 kB / 1.027 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/0.7925, allocations: 2.588 MB / 1.03 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007882/0.7933, allocations: 380.6 kB / 1.03 GB, free: 4.379 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.7937, allocations: 177.1 kB / 1.03 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.7937, allocations: 4 kB / 1.031 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005342/0.7943, allocations: 293.4 kB / 1.031 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=44): time 4.698e-06/0.7943, allocations: 3.984 kB / 1.031 GB, free: 3.863 MB / 0.7794 GB Notification: Performance of matching and sorting (n=44): time 0.001079/0.7954, allocations: 0.4955 MB / 1.031 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.7955, allocations: 225.6 kB / 1.031 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007674/0.7963, allocations: 0.608 MB / 1.032 GB, free: 2.473 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.402e-05/0.7964, allocations: 53.69 kB / 1.032 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003203/0.7967, allocations: 344.6 kB / 1.032 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.7968, allocations: 114.6 kB / 1.033 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002092/0.7971, allocations: 150.3 kB / 1.033 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000221/0.7973, allocations: 382.8 kB / 1.033 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002935/0.7976, allocations: 141.2 kB / 1.033 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.7981, allocations: 339 kB / 1.034 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.7987, allocations: 433 kB / 1.034 GB, free: 376 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.7987, allocations: 0 / 1.034 GB, free: 376 kB / 0.7794 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0009655/0.7997, allocations: 0.5463 MB / 1.034 GB, free: 15.81 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.7998, allocations: 8 kB / 1.034 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.7998, allocations: 4 kB / 1.034 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.7998, allocations: 12 kB / 1.035 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.8001, allocations: 71.83 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.8001, allocations: 15.88 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.8004, allocations: 63.42 kB / 1.035 GB, free: 15.64 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-05/0.8004, allocations: 28 kB / 1.035 GB, free: 15.61 MB / 0.795 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.0004177/0.8008, allocations: 283.7 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.837e-05/0.801, allocations: 63.25 kB / 1.035 GB, free: 15.26 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007942/0.8018, allocations: 403.1 kB / 1.035 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.8018, allocations: 8 kB / 1.035 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.8018, allocations: 3.938 kB / 1.035 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.8018, allocations: 11.97 kB / 1.035 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.8035, allocations: 1.059 MB / 1.036 GB, free: 13.72 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.8035, allocations: 11.88 kB / 1.036 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.8036, allocations: 27.91 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.8036, allocations: 3.938 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.8037, allocations: 16 kB / 1.037 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.8037, allocations: 4 kB / 1.037 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.8037, allocations: 7.984 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008098/0.8045, allocations: 0.529 MB / 1.037 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.8047, allocations: 144.2 kB / 1.037 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.8047, allocations: 16 kB / 1.037 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.805, allocations: 15.98 kB / 1.037 GB, free: 12.9 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.8051, allocations: 47.94 kB / 1.037 GB, free: 12.85 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.8052, allocations: 23.98 kB / 1.037 GB, free: 12.83 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004958/0.8057, allocations: 398.8 kB / 1.038 GB, free: 12.44 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8057, allocations: 0 / 1.038 GB, free: 12.44 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000601/0.8063, allocations: 139.6 kB / 1.038 GB, free: 12.3 MB / 0.795 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.001753/0.808, allocations: 468.3 kB / 1.038 GB, free: 12 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008564/0.8089, allocations: 406.5 kB / 1.039 GB, free: 11.61 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.8089, allocations: 4 kB / 1.039 GB, free: 11.6 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.8093, allocations: 192.4 kB / 1.039 GB, free: 11.41 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006131/0.8099, allocations: 94.19 kB / 1.039 GB, free: 11.32 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.8122, allocations: 1.352 MB / 1.04 GB, free: 9.926 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007329/0.813, allocations: 0.9419 MB / 1.041 GB, free: 8.961 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002539/0.8132, allocations: 72.38 kB / 1.041 GB, free: 8.891 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.8134, allocations: 43.42 kB / 1.041 GB, free: 8.848 MB / 0.795 GB Notification: Performance of SimCode: time 3.51e-07/0.8134, allocations: 0 / 1.041 GB, free: 8.848 MB / 0.795 GB Notification: Performance of Templates: time 0.0141/0.8275, allocations: 5.29 MB / 1.046 GB, free: 3.602 MB / 0.795 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/jenkins/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