Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 108 kB / 15.61 MB, free: 152 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.001293/0.001294, allocations: 193.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.727/1.727, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 73.58 kB / 0.6716 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.249, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.00433/0.2533, allocations: 2.432 MB / 0.7858 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002285/0.2557, allocations: 1.43 MB / 0.7872 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.2559, allocations: 7.938 kB / 0.7873 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000684/0.2566, allocations: 235.4 kB / 0.7875 GB, free: 9.242 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004364/0.2571, allocations: 151.2 kB / 0.7876 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.2575, allocations: 159.1 kB / 0.7878 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000416/0.258, allocations: 342.9 kB / 0.7881 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.2582, allocations: 92.7 kB / 0.7882 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2584, allocations: 135.4 kB / 0.7883 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.2586, allocations: 159.2 kB / 0.7885 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.512e-05/0.2587, allocations: 20 kB / 0.7885 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.2589, allocations: 63.97 kB / 0.7885 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.259, allocations: 131.5 kB / 0.7887 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.2592, allocations: 182.6 kB / 0.7888 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006009/0.2598, allocations: 0.4982 MB / 0.7893 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2598, allocations: 0 / 0.7893 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2598, allocations: 0 / 0.7893 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.657e-06/0.2598, allocations: 0 / 0.7893 GB, free: 7.332 MB / 0.6075 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.001322/0.2612, allocations: 0.7967 MB / 0.7901 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.2612, allocations: 12.03 kB / 0.7901 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.2613, allocations: 46.67 kB / 0.7902 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.2614, allocations: 64.19 kB / 0.7902 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00056/0.262, allocations: 419.9 kB / 0.7906 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.262, allocations: 16.12 kB / 0.7906 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/0.262, allocations: 19.88 kB / 0.7907 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.2623, allocations: 134.8 kB / 0.7908 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2624, allocations: 3.984 kB / 0.7908 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.2624, allocations: 4 kB / 0.7908 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2624, allocations: 7.938 kB / 0.7908 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.2626, allocations: 83.95 kB / 0.7909 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.2636, allocations: 0.6407 MB / 0.7915 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.264, allocations: 130.6 kB / 0.7916 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.797e-05/0.2642, allocations: 48.88 kB / 0.7917 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.2642, allocations: 0 / 0.7917 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002395/0.2644, allocations: 115.1 kB / 0.7918 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.763e-06/0.2644, allocations: 4 kB / 0.7918 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.000466/0.2649, allocations: 212.9 kB / 0.792 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.265, allocations: 51.41 kB / 0.7921 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006869/0.2657, allocations: 0.6398 MB / 0.7927 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2657, allocations: 33.7 kB / 0.7927 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.266, allocations: 268.3 kB / 0.793 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.266, allocations: 31.56 kB / 0.793 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.2661, allocations: 61.69 kB / 0.7931 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2663, allocations: 374.7 kB / 0.7934 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.2664, allocations: 71.97 kB / 0.7935 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.2666, allocations: 126.5 kB / 0.7936 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.2668, allocations: 128.8 kB / 0.7937 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2668, allocations: 0 / 0.7937 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004151/0.2673, allocations: 268.8 kB / 0.794 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.2673, allocations: 8 kB / 0.794 GB, free: 2.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2673, allocations: 7.969 kB / 0.794 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2673, allocations: 0 / 0.794 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.2675, allocations: 35.98 kB / 0.794 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.2675, allocations: 3.938 kB / 0.794 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.2677, allocations: 27.92 kB / 0.7941 GB, free: 2.242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.2678, allocations: 15.92 kB / 0.7941 GB, free: 2.227 MB / 0.6075 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.0002069/0.268, allocations: 201.7 kB / 0.7943 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.268, allocations: 51.34 kB / 0.7943 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.663e-05/0.2681, allocations: 52.66 kB / 0.7944 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.2682, allocations: 7.984 kB / 0.7944 GB, free: 1.91 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/0.2682, allocations: 0 / 0.7944 GB, free: 1.91 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2682, allocations: 0 / 0.7944 GB, free: 1.91 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003431/0.2685, allocations: 389.2 kB / 0.7947 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2685, allocations: 0 / 0.7947 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.686e-05/0.2686, allocations: 11.94 kB / 0.7948 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2686, allocations: 0 / 0.7948 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.2686, allocations: 4 kB / 0.7948 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2687, allocations: 4 kB / 0.7948 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.2687, allocations: 7.922 kB / 0.7948 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.2691, allocations: 252.3 kB / 0.795 GB, free: 1.188 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.794e-05/0.2692, allocations: 132.5 kB / 0.7951 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.2693, allocations: 8 kB / 0.7951 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.2694, allocations: 11.97 kB / 0.7952 GB, free: 1.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.265e-05/0.2695, allocations: 23.97 kB / 0.7952 GB, free: 0.9961 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.2695, allocations: 4 kB / 0.7952 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004525/0.27, allocations: 430.8 kB / 0.7956 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.27, allocations: 0 / 0.7956 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002975/0.2703, allocations: 67.83 kB / 0.7957 GB, free: 0.5078 MB / 0.6075 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.001605/0.2719, allocations: 1.114 MB / 0.7967 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003607/0.2722, allocations: 162 kB / 0.7969 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2723, allocations: 0 / 0.7969 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.2724, allocations: 59.98 kB / 0.797 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.2729, allocations: 75.62 kB / 0.797 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.2781, allocations: 3.885 MB / 0.8008 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.2787, allocations: 0.8533 MB / 0.8017 GB, free: 10.38 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000181/0.2788, allocations: 38.28 kB / 0.8017 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.2791, allocations: 163.4 kB / 0.8019 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of SimCode: time 1.583e-06/0.2791, allocations: 4 kB / 0.8019 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.3114, allocations: 9.091 MB / 0.8107 GB, free: 1.238 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/8.081, allocations: 11.86 kB / 0.8107 GB, free: 1.227 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertPower.fmu > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1)