Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, 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.00202/0.00202, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.503/1.503, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.948/2.948, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 72.97 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3361, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004657/0.3408, allocations: 2.438 MB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.3435, allocations: 1.506 MB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.3437, allocations: 7.938 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006272/0.3444, allocations: 227.6 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003419/0.3447, allocations: 163.1 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.3451, allocations: 187 kB / 1.073 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.3455, allocations: 342.9 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.3457, allocations: 96.69 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3459, allocations: 131.4 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.3461, allocations: 155.2 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.471e-05/0.3461, allocations: 20 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.3463, allocations: 67.95 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.3464, allocations: 127.5 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.3466, allocations: 190.6 kB / 1.074 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005123/0.3471, allocations: 0.4904 MB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3471, allocations: 0 / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3471, allocations: 0 / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.3471, allocations: 0 / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001108/0.3482, allocations: 0.8045 MB / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.3483, allocations: 12.03 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3484, allocations: 68.19 kB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.3488, allocations: 423.8 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.3489, allocations: 12.38 kB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.3489, allocations: 15.94 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.3492, allocations: 138.8 kB / 1.076 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.3492, allocations: 0 / 1.076 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3492, allocations: 4 kB / 1.076 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3492, allocations: 4 kB / 1.076 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.3494, allocations: 83.97 kB / 1.076 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009446/0.3504, allocations: 0.6407 MB / 1.076 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.3507, allocations: 130.7 kB / 1.076 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.3508, allocations: 48.84 kB / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.3509, allocations: 0 / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.3511, allocations: 107.3 kB / 1.077 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.3511, allocations: 0 / 1.077 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0004199/0.3515, allocations: 216.9 kB / 1.077 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.3515, allocations: 51.41 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/0.3522, allocations: 0.6436 MB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.3522, allocations: 33.7 kB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.3524, allocations: 260.3 kB / 1.078 GB, free: 416 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.3525, allocations: 39.53 kB / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.334e-05/0.3526, allocations: 57.69 kB / 1.078 GB, free: 312 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3527, allocations: 366.8 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.3529, allocations: 79.91 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.353, allocations: 121.2 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.3533, allocations: 140.2 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3533, allocations: 0 / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003892/0.3537, allocations: 268.8 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.3537, allocations: 8 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3537, allocations: 0 / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3537, allocations: 0 / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.3539, allocations: 39.92 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.3539, allocations: 3.984 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.3541, allocations: 31.86 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.3541, allocations: 4 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.PEleDem.tab.nextTimeEvent,$whenCondition1,PEleDem.tab.nextTimeEventScaled,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent,assPow.minPow.y,$PRE.assPow.minPow.y,assPow.maxPow.y,$PRE.assPow.maxPow.y,assPow.assMesDP.u,assPow.assMesP.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001943/0.3543, allocations: 214.2 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.573e-05/0.3544, allocations: 51.34 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.541e-05/0.3545, allocations: 56.66 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3545, allocations: 0 / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.3545, allocations: 0 / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3545, allocations: 3.938 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.3548, allocations: 385.2 kB / 1.08 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3549, allocations: 3.984 kB / 1.08 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.695e-05/0.3549, allocations: 11.98 kB / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3549, allocations: 0 / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.355, allocations: 0 / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.355, allocations: 4 kB / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.355, allocations: 0 / 1.08 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004215/0.3554, allocations: 260.3 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.3555, allocations: 128.5 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.3556, allocations: 8 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.3557, allocations: 23.91 kB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.3558, allocations: 15.98 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.3558, allocations: 7.984 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005115/0.3563, allocations: 426.8 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3563, allocations: 0 / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002994/0.3567, allocations: 67.84 kB / 1.08 GB, free: 13.51 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (assPow.demRat.x) * Number of discrete variables: 7 ($whenCondition1,assPow.assMesP.u,assPow.assMesDP.u,assPow.maxPow.y,assPow.minPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (PEleDem.tab.nextTimeEventScaled,assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009948/0.3577, allocations: 427.4 kB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003431/0.358, allocations: 151.9 kB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.358, allocations: 0 / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.3582, allocations: 59.91 kB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.3586, allocations: 80.28 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.3599, allocations: 0.8514 MB / 1.082 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.3604, allocations: 0.8533 MB / 1.083 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001239/0.3605, allocations: 42.27 kB / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.3606, allocations: 27.42 kB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.3606, allocations: 3.938 kB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of Templates: time 0.008627/0.3692, allocations: 4.034 MB / 1.087 GB, free: 7.125 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches