Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.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.FilterPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filPow.PEleDem|filPow.PEle|filPow.assPow.assMesP.u|filPow.assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filPow.PEleDem|filPow.PEle|filPow.assPow.assMesP.u|filPow.assPow.assMesDP.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009557/0.0009556, allocations: 94.3 kB / 15.05 MB, free: 1.113 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.0009972/0.0009972, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.622/2.622, allocations: 436.5 MB / 0.7104 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 12 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7956/0.796, allocations: 153.7 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower): time 0.002991/0.799, allocations: 2.251 MB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00251/0.8016, allocations: 1.515 MB / 1.024 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003007/0.8019, allocations: 7.938 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000725/0.8026, allocations: 211.1 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005092/0.8031, allocations: 151.5 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/0.8039, allocations: 182.4 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005305/0.8044, allocations: 283.4 kB / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003002/0.8047, allocations: 123.9 kB / 1.025 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.8049, allocations: 147.3 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002391/0.8052, allocations: 159.2 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.8052, allocations: 12 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.8054, allocations: 39.91 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.8056, allocations: 123.5 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.8057, allocations: 109.4 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000488/0.8062, allocations: 0.5027 MB / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.8062, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.404e-06/0.8062, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.8062, allocations: 0 / 1.026 GB, free: 11.3 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001348/0.8076, allocations: 0.8289 MB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.8076, allocations: 15.98 kB / 1.027 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.914e-05/0.8077, allocations: 71.16 kB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007025/0.8084, allocations: 452 kB / 1.028 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.8085, allocations: 16.38 kB / 1.028 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.8085, allocations: 27.95 kB / 1.028 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005124/0.809, allocations: 228.3 kB / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.8091, allocations: 3.938 kB / 1.028 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.8091, allocations: 8 kB / 1.028 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.8091, allocations: 4 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.8095, allocations: 175.3 kB / 1.028 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.811, allocations: 0.8822 MB / 1.029 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009662/0.812, allocations: 350.5 kB / 1.029 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.812, allocations: 4 kB / 1.029 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003657/0.8124, allocations: 173 kB / 1.03 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.623e-06/0.8124, allocations: 0 / 1.03 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0007882/0.8132, allocations: 353 kB / 1.03 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.8133, allocations: 81.11 kB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007862/0.8141, allocations: 0.715 MB / 1.031 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.8141, allocations: 33.7 kB / 1.031 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.8144, allocations: 296.2 kB / 1.031 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.269e-05/0.8144, allocations: 51.3 kB / 1.031 GB, free: 6.363 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.566e-05/0.8145, allocations: 4 kB / 1.031 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.8146, allocations: 374.8 kB / 1.031 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.8149, allocations: 131.9 kB / 1.032 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.8152, allocations: 187 kB / 1.032 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.8155, allocations: 132.3 kB / 1.032 GB, free: 5.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.8155, allocations: 4 kB / 1.032 GB, free: 5.516 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006591/0.8162, allocations: 376.8 kB / 1.032 GB, free: 5.141 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.8164, allocations: 271 kB / 1.032 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.8164, allocations: 0 / 1.032 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.8164, allocations: 0 / 1.032 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.8167, allocations: 71.92 kB / 1.033 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.8167, allocations: 64 / 1.033 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.8169, allocations: 55.81 kB / 1.033 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.817, allocations: 11.98 kB / 1.033 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.817, allocations: 4 kB / 1.033 GB, free: 4.715 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005171/0.8175, allocations: 264 kB / 1.033 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-06/0.8175, allocations: 0 / 1.033 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-06/0.8175, allocations: 4 kB / 1.033 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.8177, allocations: 59.97 kB / 1.033 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-06/0.8177, allocations: 0 / 1.033 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.818, allocations: 51.77 kB / 1.033 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.818, allocations: 8 kB / 1.033 GB, free: 4.336 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled,filPow.assPow.assMesP.u,filPow.assPow.assMesDP.u,$PRE.filPow.assPow.maxPow.y,filPow.assPow.maxPow.y,$PRE.filPow.assPow.minPow.y,filPow.assPow.minPow.y,filPow.limDp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003006/0.8183, allocations: 301 kB / 1.033 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.095e-05/0.8184, allocations: 59.25 kB / 1.033 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.8185, allocations: 65.72 kB / 1.033 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.8185, allocations: 0 / 1.033 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.8185, allocations: 0 / 1.033 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.8185, allocations: 7.938 kB / 1.033 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.819, allocations: 441.2 kB / 1.034 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.819, allocations: 0 / 1.034 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.8192, allocations: 31.98 kB / 1.034 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.8192, allocations: 0 / 1.034 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.8192, allocations: 15.92 kB / 1.034 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.8192, allocations: 0 / 1.034 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.8192, allocations: 0 / 1.034 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/0.82, allocations: 406.6 kB / 1.034 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.8202, allocations: 140.4 kB / 1.034 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.915e-05/0.8203, allocations: 8 kB / 1.034 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.8205, allocations: 35.97 kB / 1.034 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/0.8206, allocations: 23.95 kB / 1.034 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.8206, allocations: 11.98 kB / 1.034 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0006012/0.8212, allocations: 471 kB / 1.035 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8212, allocations: 0 / 1.035 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005096/0.8217, allocations: 135.7 kB / 1.035 GB, free: 2.129 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (filPow.assPow.demRat.x,filPow.dPLim.y) * Number of discrete variables: 7 ($whenCondition1,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled,filPow.assPow.assMesP.u,filPow.assPow.assMesDP.u,filPow.assPow.maxPow.y,filPow.assPow.minPow.y) * Number of discrete states: 4 (filPow.assPow.minPow.y,filPow.assPow.maxPow.y,PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001207/0.823, allocations: 420.4 kB / 1.035 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008937/0.8239, allocations: 406.5 kB / 1.036 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.8239, allocations: 0 / 1.036 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002443/0.8241, allocations: 108.1 kB / 1.036 GB, free: 1.363 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.8246, allocations: 102.5 kB / 1.036 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.8262, allocations: 1.098 MB / 1.037 GB, free: 148 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.8267, allocations: 0.8935 MB / 1.038 GB, free: 15.23 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002244/0.8269, allocations: 70.92 kB / 1.038 GB, free: 15.16 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.996e-05/0.827, allocations: 31.42 kB / 1.038 GB, free: 15.13 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.827, allocations: 0 / 1.038 GB, free: 15.13 MB / 0.795 GB Notification: Performance of Templates: time 0.009785/0.8368, allocations: 4.612 MB / 1.043 GB, free: 10.55 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_FilterPower.csv","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches