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: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.00138/0.00138, allocations: 110.9 kB / 16.37 MB, free: 6.012 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.001079/0.001079, allocations: 189.4 kB / 17.31 MB, free: 5.613 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.372/1.372, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.769/1.769, allocations: 292.3 MB / 0.5496 GB, free: 17.39 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.001446/0.001446, allocations: 67.89 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2165, allocations: 114.6 MB / 0.7848 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower): time 0.004102/0.2207, allocations: 2.438 MB / 0.7872 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.348/0.5687, allocations: 1.42 MB / 0.7886 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002201/0.5689, allocations: 5.688 kB / 0.7886 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0006645/0.5697, allocations: 229.8 kB / 0.7888 GB, free: 46.71 MB / 0.6544 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.000342/0.57, allocations: 155.2 kB / 0.7889 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.5704, allocations: 155.8 kB / 0.7891 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.5708, allocations: 346.8 kB / 0.7894 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.571, allocations: 95.17 kB / 0.7895 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.5711, allocations: 139.5 kB / 0.7896 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.5713, allocations: 157.1 kB / 0.7898 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.015e-05/0.5714, allocations: 21 kB / 0.7898 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.5715, allocations: 65.48 kB / 0.7899 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.5716, allocations: 127.3 kB / 0.79 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.5718, allocations: 191 kB / 0.7902 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004479/0.5722, allocations: 0.5035 MB / 0.7907 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.5722, allocations: 2.688 kB / 0.7907 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.483e-06/0.5723, allocations: 0 / 0.7907 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.5723, allocations: 0 / 0.7907 GB, free: 46.42 MB / 0.6544 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.0009955/0.5733, allocations: 0.8062 MB / 0.7915 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.5733, allocations: 13.28 kB / 0.7915 GB, free: 45.83 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.571e-05/0.5734, allocations: 59.12 kB / 0.7915 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004237/0.5738, allocations: 416.7 kB / 0.7919 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.5739, allocations: 13.31 kB / 0.7919 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.59e-05/0.5739, allocations: 20.91 kB / 0.792 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.5742, allocations: 129.6 kB / 0.7921 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.5742, allocations: 0 / 0.7921 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.5742, allocations: 6 kB / 0.7921 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.5742, allocations: 6.031 kB / 0.7921 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.5744, allocations: 86.28 kB / 0.7922 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000803/0.5752, allocations: 0.6351 MB / 0.7928 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.5755, allocations: 138.6 kB / 0.7929 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.195e-05/0.5756, allocations: 46.41 kB / 0.793 GB, free: 45.17 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.5756, allocations: 4.375 kB / 0.793 GB, free: 45.17 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.5758, allocations: 105.4 kB / 0.7931 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 2.224e-06/0.5758, allocations: 0 / 0.7931 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0003925/0.5762, allocations: 216 kB / 0.7933 GB, free: 45.05 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.5763, allocations: 56.19 kB / 0.7933 GB, free: 44.99 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000528/0.5768, allocations: 0.6432 MB / 0.794 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.5768, allocations: 32.08 kB / 0.794 GB, free: 44.84 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.577, allocations: 262.1 kB / 0.7942 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.577, allocations: 36.03 kB / 0.7943 GB, free: 44.73 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/0.5771, allocations: 56.89 kB / 0.7943 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.26e-05/0.5772, allocations: 368.7 kB / 0.7947 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.5773, allocations: 79.73 kB / 0.7948 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.5775, allocations: 112.9 kB / 0.7949 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.5777, allocations: 132.8 kB / 0.795 GB, free: 44.35 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.654e-06/0.5777, allocations: 6.375 kB / 0.795 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003359/0.578, allocations: 269.2 kB / 0.7953 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.5781, allocations: 3.75 kB / 0.7953 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.5781, allocations: 0 / 0.7953 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.5781, allocations: 5.047 kB / 0.7953 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.5783, allocations: 38.95 kB / 0.7953 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.5783, allocations: 3.469 kB / 0.7953 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.5784, allocations: 27.97 kB / 0.7953 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.5785, allocations: 6.406 kB / 0.7953 GB, free: 44.28 MB / 0.6544 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.0001572/0.5786, allocations: 212.8 kB / 0.7955 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.7e-05/0.5787, allocations: 51.97 kB / 0.7956 GB, free: 44.13 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.333e-05/0.5788, allocations: 61.8 kB / 0.7956 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.5788, allocations: 0 / 0.7956 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5788, allocations: 3.438 kB / 0.7957 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5788, allocations: 0 / 0.7957 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.5791, allocations: 379.2 kB / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5791, allocations: 3.234 kB / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.269e-05/0.5791, allocations: 10.94 kB / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.5791, allocations: 3.438 kB / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.5792, allocations: 0 / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.5792, allocations: 6.938 kB / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5792, allocations: 0.5938 kB / 0.796 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003476/0.5795, allocations: 265.3 kB / 0.7963 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.801e-05/0.5796, allocations: 125.4 kB / 0.7964 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.5797, allocations: 3.375 kB / 0.7964 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.5798, allocations: 14.27 kB / 0.7964 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/0.5799, allocations: 23.67 kB / 0.7964 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.5799, allocations: 3.281 kB / 0.7965 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003569/0.5802, allocations: 436.8 kB / 0.7969 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5802, allocations: 0 / 0.7969 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002726/0.5805, allocations: 64.84 kB / 0.7969 GB, free: 43.61 MB / 0.6544 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.0009533/0.5815, allocations: 431.7 kB / 0.7973 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002839/0.5818, allocations: 155.4 kB / 0.7975 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5818, allocations: 0 / 0.7975 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.5819, allocations: 57.2 kB / 0.7975 GB, free: 43.49 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.5823, allocations: 76.02 kB / 0.7976 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.5834, allocations: 0.8786 MB / 0.7985 GB, free: 43.08 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.5836, allocations: 0.8595 MB / 0.7993 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.972e-05/0.5837, allocations: 27.89 kB / 0.7993 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of SimCode: time 2.1e-07/0.5837, allocations: 0 / 0.7993 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of Templates: time 0.01029/0.594, allocations: 5.415 MB / 0.8046 GB, free: 41.66 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.makefile (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 & ./Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.pipe 2>&1)