Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.AssertPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|per.PEleMax|per.PEleMin|assPow.PEleDem|assPow.assMesP.u|assPow.assMesDP.u",fileNamePrefix="Buildings_9_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_9_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.001886/0.001886, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001694/0.001694, allocations: 193.8 kB / 16.25 MB, free: 6.637 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7693/0.7708, allocations: 140.4 MB / 0.9491 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004343/0.7752, allocations: 2.473 MB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002587/0.7779, allocations: 1.479 MB / 0.953 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003636/0.7782, allocations: 7.312 kB / 0.953 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000788/0.779, allocations: 223.3 kB / 0.9532 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005727/0.7797, allocations: 138.1 kB / 0.9533 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006054/0.7803, allocations: 162 kB / 0.9535 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005871/0.7809, allocations: 351.2 kB / 0.9538 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.7811, allocations: 91.22 kB / 0.9539 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.7814, allocations: 136.4 kB / 0.954 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002703/0.7817, allocations: 165.4 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.149e-05/0.7818, allocations: 21.88 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.782, allocations: 63.84 kB / 0.9543 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.7822, allocations: 129.5 kB / 0.9544 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.7824, allocations: 192.1 kB / 0.9546 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005939/0.783, allocations: 0.493 MB / 0.955 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.783, allocations: 1.031 kB / 0.955 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.745e-06/0.783, allocations: 7.922 kB / 0.9551 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.723e-05/0.783, allocations: 0 / 0.9551 GB, free: 4.637 MB / 0.7169 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.001443/0.7845, allocations: 0.7991 MB / 0.9558 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.7845, allocations: 9.188 kB / 0.9558 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.7846, allocations: 60.06 kB / 0.9559 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.7851, allocations: 421.1 kB / 0.9563 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.7852, allocations: 14.33 kB / 0.9563 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.7852, allocations: 25.45 kB / 0.9563 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002682/0.7855, allocations: 131.4 kB / 0.9565 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.7855, allocations: 0 / 0.9565 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.7855, allocations: 5.781 kB / 0.9565 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.7855, allocations: 1.844 kB / 0.9565 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.7857, allocations: 83.42 kB / 0.9566 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000999/0.7867, allocations: 0.6448 MB / 0.9572 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003913/0.7871, allocations: 135.8 kB / 0.9573 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.888e-05/0.7872, allocations: 50.59 kB / 0.9574 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.7873, allocations: 5.516 kB / 0.9574 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.7875, allocations: 101.1 kB / 0.9575 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.743e-06/0.7875, allocations: 0 / 0.9575 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0004537/0.788, allocations: 214.3 kB / 0.9577 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.788, allocations: 52.84 kB / 0.9577 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007495/0.7888, allocations: 0.6531 MB / 0.9584 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.7888, allocations: 32.45 kB / 0.9584 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.789, allocations: 250.6 kB / 0.9586 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.789, allocations: 42.23 kB / 0.9587 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/0.7891, allocations: 54.34 kB / 0.9587 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.7892, allocations: 366.8 kB / 0.9591 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.7894, allocations: 79.06 kB / 0.9591 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.7896, allocations: 119.9 kB / 0.9593 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.7898, allocations: 130.7 kB / 0.9594 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.7898, allocations: 0 / 0.9594 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004446/0.7902, allocations: 270.7 kB / 0.9596 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.7903, allocations: 9.5 kB / 0.9596 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.7903, allocations: 0 / 0.9596 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.7903, allocations: 2.125 kB / 0.9596 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001891/0.7905, allocations: 45.5 kB / 0.9597 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.7905, allocations: 1.188 kB / 0.9597 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.7907, allocations: 23.95 kB / 0.9597 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.7908, allocations: 5.219 kB / 0.9597 GB, free: 1.062 MB / 0.7169 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.0002049/0.791, allocations: 215.2 kB / 0.9599 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.938e-05/0.791, allocations: 55.5 kB / 0.96 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.7911, allocations: 55.38 kB / 0.96 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.7912, allocations: 5.688 kB / 0.96 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.7912, allocations: 1.094 kB / 0.96 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.7912, allocations: 0 / 0.96 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.7915, allocations: 379.5 kB / 0.9604 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.7916, allocations: 0.7188 kB / 0.9604 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.7916, allocations: 12.11 kB / 0.9604 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.7916, allocations: 0 / 0.9604 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.7917, allocations: 2.219 kB / 0.9604 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.7917, allocations: 5.062 kB / 0.9604 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7917, allocations: 0 / 0.9604 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.7921, allocations: 269.4 kB / 0.9607 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.144e-05/0.7922, allocations: 129 kB / 0.9608 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.158e-05/0.7923, allocations: 10.28 kB / 0.9608 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.7924, allocations: 15.3 kB / 0.9608 GB, free: 156 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.574e-05/0.7925, allocations: 25.38 kB / 0.9608 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.7926, allocations: 4.5 kB / 0.9609 GB, free: 140 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0005459/0.7931, allocations: 427.9 kB / 0.9613 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7931, allocations: 0 / 0.9613 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003555/0.7935, allocations: 59.91 kB / 0.9613 GB, free: 15.89 MB / 0.7325 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.001093/0.7946, allocations: 421.2 kB / 0.9617 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000412/0.795, allocations: 173.5 kB / 0.9619 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.795, allocations: 0 / 0.9619 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.7952, allocations: 60.11 kB / 0.9619 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.7957, allocations: 75.33 kB / 0.962 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.7973, allocations: 0.9527 MB / 0.9629 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.7979, allocations: 0.8651 MB / 0.9638 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001953/0.7981, allocations: 35 kB / 0.9638 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.7982, allocations: 32.58 kB / 0.9639 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of SimCode: time 2.9e-07/0.7982, allocations: 0 / 0.9639 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of Templates: time 0.01203/0.8102, allocations: 3.888 MB / 0.9677 GB, free: 12.18 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches