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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001498/0.001498, allocations: 102 kB / 16.27 MB, free: 5.969 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.001819/0.001819, allocations: 196.3 kB / 17.2 MB, free: 5.594 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.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.718/2.718, allocations: 469.4 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 62.22 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3352, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.FilterPower): time 0.00494/0.3402, allocations: 2.681 MB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002995/0.3433, allocations: 1.662 MB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.3437, allocations: 7.938 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007995/0.3445, allocations: 243.4 kB / 1.069 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0006251/0.3452, allocations: 175 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007177/0.3459, allocations: 248.4 kB / 1.069 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006878/0.3466, allocations: 478.7 kB / 1.07 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003112/0.3469, allocations: 147.8 kB / 1.07 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003173/0.3472, allocations: 183.3 kB / 1.07 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003098/0.3475, allocations: 203 kB / 1.07 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.224e-05/0.3477, allocations: 36 kB / 1.07 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.3479, allocations: 75.98 kB / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.3481, allocations: 159.4 kB / 1.07 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.3483, allocations: 242.4 kB / 1.071 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007516/0.3491, allocations: 0.6501 MB / 1.071 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.3491, allocations: 0 / 1.071 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3491, allocations: 7.875 kB / 1.071 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.113e-05/0.3491, allocations: 0 / 1.071 GB, free: 7.828 MB / 0.8419 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.001785/0.3509, allocations: 0.9026 MB / 1.072 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.351, allocations: 8.625 kB / 1.072 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.3511, allocations: 68.09 kB / 1.072 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007047/0.3518, allocations: 484.8 kB / 1.073 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.3519, allocations: 12.75 kB / 1.073 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.903e-05/0.3519, allocations: 31.92 kB / 1.073 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005115/0.3525, allocations: 216.5 kB / 1.073 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.3525, allocations: 4 kB / 1.073 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.3525, allocations: 11.94 kB / 1.073 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3525, allocations: 8 kB / 1.073 GB, free: 6 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004088/0.3529, allocations: 159.3 kB / 1.073 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.3545, allocations: 0.8704 MB / 1.074 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009493/0.3554, allocations: 298.5 kB / 1.074 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.3556, allocations: 88.81 kB / 1.074 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.3557, allocations: 3.984 kB / 1.074 GB, free: 4.531 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003512/0.356, allocations: 169.2 kB / 1.074 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 3.126e-06/0.356, allocations: 4 kB / 1.074 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0008187/0.3569, allocations: 326.4 kB / 1.075 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.3569, allocations: 85.11 kB / 1.075 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008695/0.3578, allocations: 0.7112 MB / 1.076 GB, free: 3.199 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.3579, allocations: 33.7 kB / 1.076 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.3581, allocations: 288.4 kB / 1.076 GB, free: 2.875 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.682e-05/0.3582, allocations: 51.34 kB / 1.076 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.3583, allocations: 61.69 kB / 1.076 GB, free: 2.758 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001773/0.3585, allocations: 378.8 kB / 1.076 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002695/0.3588, allocations: 128.8 kB / 1.076 GB, free: 2.25 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/0.3591, allocations: 187.3 kB / 1.077 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.3596, allocations: 214.4 kB / 1.077 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3596, allocations: 64 / 1.077 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006886/0.3603, allocations: 368.7 kB / 1.077 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3603, allocations: 8 kB / 1.077 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3603, allocations: 7.922 kB / 1.077 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.3603, allocations: 0 / 1.077 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.3606, allocations: 63.97 kB / 1.077 GB, free: 1.379 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.3606, allocations: 0 / 1.077 GB, free: 1.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.3609, allocations: 43.8 kB / 1.077 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.3609, allocations: 8 kB / 1.077 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003836/0.3613, allocations: 280 kB / 1.078 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000254/0.3616, allocations: 174.8 kB / 1.078 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003391/0.3619, allocations: 186.7 kB / 1.078 GB, free: 0.6641 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.3619, allocations: 0 / 1.078 GB, free: 0.6641 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization_lambda0): time 0.0005777/0.3625, allocations: 344.8 kB / 1.078 GB, free: 328 kB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.417e-06/0.3625, allocations: 4 kB / 1.078 GB, free: 324 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-06/0.3625, allocations: 3.938 kB / 1.078 GB, free: 320 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.713e-06/0.3625, allocations: 7.938 kB / 1.078 GB, free: 312 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.3628, allocations: 51.91 kB / 1.078 GB, free: 260 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.3628, allocations: 0 / 1.078 GB, free: 260 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.363, allocations: 55.8 kB / 1.078 GB, free: 204 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.3631, allocations: 8 kB / 1.078 GB, free: 196 kB / 0.8419 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 ($PRE.PEleDem.tab.nextTimeEvent,$whenCondition1,filPow.assPow.minPow.y,$PRE.filPow.assPow.minPow.y,filPow.assPow.maxPow.y,$PRE.filPow.assPow.maxPow.y,filPow.assPow.assMesDP.u,filPow.assPow.assMesP.u,PEleDem.tab.nextTimeEventScaled,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEvent,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.5457/0.9087, allocations: 200.3 kB / 1.079 GB, free: 21.98 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.9089, allocations: 57.5 kB / 1.079 GB, free: 21.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001997/0.9091, allocations: 66.64 kB / 1.079 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.9091, allocations: 1.812 kB / 1.079 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.9092, allocations: 0.5938 kB / 1.079 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.9092, allocations: 5.109 kB / 1.079 GB, free: 21.97 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005485/0.9097, allocations: 440.9 kB / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.9097, allocations: 0.5625 kB / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.9099, allocations: 29.86 kB / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.91, allocations: 2.5 kB / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.91, allocations: 4.094 kB / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.91, allocations: 1.594 kB / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.91, allocations: 0 / 1.079 GB, free: 21.78 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008627/0.9109, allocations: 385.2 kB / 1.079 GB, free: 21.72 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.933e-05/0.911, allocations: 136.3 kB / 1.08 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.948e-05/0.911, allocations: 7.344 kB / 1.08 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.9112, allocations: 25.22 kB / 1.08 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.9114, allocations: 32.33 kB / 1.08 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.9114, allocations: 9.031 kB / 1.08 GB, free: 21.62 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006292/0.912, allocations: 475.2 kB / 1.08 GB, free: 21.53 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.912, allocations: 0 / 1.08 GB, free: 21.53 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005446/0.9126, allocations: 135.2 kB / 1.08 GB, free: 21.52 MB / 0.8419 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 (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.00104/0.9136, allocations: 434.9 kB / 1.081 GB, free: 21.4 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008943/0.9145, allocations: 402.8 kB / 1.081 GB, free: 21.4 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9145, allocations: 5 kB / 1.081 GB, free: 21.4 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.9148, allocations: 94.33 kB / 1.081 GB, free: 21.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.9153, allocations: 94.7 kB / 1.081 GB, free: 21.39 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.917, allocations: 1.026 MB / 1.082 GB, free: 20.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.9174, allocations: 0.8799 MB / 1.083 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.9175, allocations: 37.53 kB / 1.083 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.9175, allocations: 0 / 1.083 GB, free: 20.27 MB / 0.8419 GB Notification: Performance of Templates: time 0.01357/0.9311, allocations: 6.497 MB / 1.089 GB, free: 19.24 MB / 0.8419 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)