Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertPower") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.37/2.37, allocations: 253.1 MB / 260.4 MB, free: 7.559 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001603/0.001603, allocations: 181.2 kB / 319.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.874/1.874, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001344/0.001343, allocations: 99.62 kB / 0.6746 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.352e-05/1.37e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2262, allocations: 106.2 MB / 0.888 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7081/0.9344, allocations: 137.6 MB / 1.022 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/0.9348, allocations: 89.06 kB / 1.022 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.0508/0.9856, allocations: 11.51 MB / 1.034 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.837e-05/0.9857, allocations: 4 kB / 1.034 GB, free: 7.129 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.001177/0.9869, allocations: 0.6506 MB / 1.034 GB, free: 6.461 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.987, allocations: 8.031 kB / 1.034 GB, free: 6.453 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.9871, allocations: 59.25 kB / 1.034 GB, free: 6.395 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009965/0.9881, allocations: 395.7 kB / 1.035 GB, free: 6.004 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.9882, allocations: 4 kB / 1.035 GB, free: 6 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.9882, allocations: 15.92 kB / 1.035 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002714/0.9885, allocations: 69.3 kB / 1.035 GB, free: 5.941 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.9888, allocations: 115.9 kB / 1.035 GB, free: 5.848 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.9889, allocations: 3.938 kB / 1.035 GB, free: 5.844 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.9889, allocations: 7.984 kB / 1.035 GB, free: 5.836 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.9889, allocations: 11.84 kB / 1.035 GB, free: 5.824 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.9903, allocations: 0.5814 MB / 1.036 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003712/0.9907, allocations: 113.5 kB / 1.036 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.9908, allocations: 41.58 kB / 1.036 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.9909, allocations: 0 / 1.036 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.9911, allocations: 90.81 kB / 1.036 GB, free: 5.105 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=12): time 1.803e-06/0.9911, allocations: 4 kB / 1.036 GB, free: 5.102 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12): time 0.0004642/0.9916, allocations: 148.3 kB / 1.036 GB, free: 4.973 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.9917, allocations: 55.41 kB / 1.036 GB, free: 4.906 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.9927, allocations: 0.5251 MB / 1.037 GB, free: 4.488 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.9927, allocations: 36.88 kB / 1.037 GB, free: 4.449 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.9929, allocations: 149.3 kB / 1.037 GB, free: 4.316 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/0.993, allocations: 34.61 kB / 1.037 GB, free: 4.289 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.993, allocations: 0 / 1.037 GB, free: 4.289 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001954/0.9932, allocations: 370.1 kB / 1.037 GB, free: 3.941 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/0.9934, allocations: 75.36 kB / 1.037 GB, free: 3.895 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.9937, allocations: 108.9 kB / 1.037 GB, free: 3.809 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/0.994, allocations: 88.34 kB / 1.037 GB, free: 3.75 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.994, allocations: 0 / 1.037 GB, free: 3.75 MB / 0.6511 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006808/0.9947, allocations: 269.2 kB / 1.038 GB, free: 3.531 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.9947, allocations: 4.062 kB / 1.038 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.9947, allocations: 4 kB / 1.038 GB, free: 3.523 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.9947, allocations: 0 / 1.038 GB, free: 3.523 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.9951, allocations: 35.17 kB / 1.038 GB, free: 3.492 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.9951, allocations: 7.906 kB / 1.038 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.9955, allocations: 27.92 kB / 1.038 GB, free: 3.457 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.9955, allocations: 15.92 kB / 1.038 GB, free: 3.445 MB / 0.6511 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 ($whenCondition1,$PRE.PEleDem.tab.nextTimeEvent,assPow.assMesP.u,$PRE.assPow.maxPow.y,assPow.maxPow.y,$PRE.assPow.minPow.y,assPow.minPow.y,assPow.assMesDP.u,PEleDem.tab.nextTimeEvent,$PRE.PEleDem.tab.nextTimeEventScaled,PEleDem.tab.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.9957, allocations: 112.9 kB / 1.038 GB, free: 3.328 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.9958, allocations: 55.25 kB / 1.038 GB, free: 3.273 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005085/0.9964, allocations: 161.3 kB / 1.038 GB, free: 3.137 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.9964, allocations: 0 / 1.038 GB, free: 3.137 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.9964, allocations: 0 / 1.038 GB, free: 3.137 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.9964, allocations: 0 / 1.038 GB, free: 3.137 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004544/0.9969, allocations: 336.2 kB / 1.038 GB, free: 2.832 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.9969, allocations: 3.906 kB / 1.038 GB, free: 2.828 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.997, allocations: 19.86 kB / 1.038 GB, free: 2.809 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.9971, allocations: 0 / 1.038 GB, free: 2.809 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.9971, allocations: 7.812 kB / 1.038 GB, free: 2.805 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.9971, allocations: 0 / 1.038 GB, free: 2.805 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.9971, allocations: 0 / 1.038 GB, free: 2.805 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005175/0.9976, allocations: 223.9 kB / 1.039 GB, free: 2.613 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.9978, allocations: 135.8 kB / 1.039 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.156e-05/0.9979, allocations: 0 / 1.039 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.9982, allocations: 15.98 kB / 1.039 GB, free: 2.449 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.9983, allocations: 23.38 kB / 1.039 GB, free: 2.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.9983, allocations: 7.984 kB / 1.039 GB, free: 2.422 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0006727/0.999, allocations: 389.4 kB / 1.039 GB, free: 2.129 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005125/0.9995, allocations: 64 kB / 1.039 GB, free: 2.07 MB / 0.6511 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.maxPow.y,assPow.minPow.y,assPow.assMesDP.u,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Number of discrete states: 4 (assPow.minPow.y,assPow.maxPow.y,PEleDem.tab.nextTimeEvent,PEleDem.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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.001027/1.001, allocations: 354.8 kB / 1.04 GB, free: 1.812 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004305/1.001, allocations: 134.7 kB / 1.04 GB, free: 1.719 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.001, allocations: 0 / 1.04 GB, free: 1.719 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001493/1.001, allocations: 58.11 kB / 1.04 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00061/1.002, allocations: 56.48 kB / 1.04 GB, free: 1.641 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/1.004, allocations: 0.5654 MB / 1.04 GB, free: 1.105 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000707/1.004, allocations: 0.8822 MB / 1.041 GB, free: 216 kB / 0.6511 GB Notification: Performance of SimCode: time 1.092e-06/1.004, allocations: 0 / 1.041 GB, free: 216 kB / 0.6511 GB Notification: Performance of Templates: time 0.01334/1.018, allocations: 3.219 MB / 1.044 GB, free: 13.03 MB / 0.6667 GB