Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [: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.256/2.256, allocations: 253.1 MB / 260.4 MB, free: 7.578 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.002319/0.002319, allocations: 185.2 kB / 319.6 MB, free: 3.32 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 2.015/2.015, allocations: 205.4 MB / 0.5704 GB, free: 15.05 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.001408/0.001408, allocations: 87.45 kB / 0.6746 GB, free: 4.426 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.778e-06/1.002e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2183, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6772/0.8956, allocations: 137.9 MB / 1.023 GB, free: 500 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004703/0.8961, allocations: 86.5 kB / 1.023 GB, free: 452 kB / 0.6355 GB Notification: Performance of FrontEnd: time 0.08559/0.9817, allocations: 13.09 MB / 1.036 GB, free: 5.449 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.322e-05/0.9818, allocations: 8 kB / 1.036 GB, free: 5.441 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.00124/0.9831, allocations: 0.6887 MB / 1.036 GB, free: 4.723 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.9831, allocations: 8.031 kB / 1.036 GB, free: 4.715 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.9833, allocations: 55.34 kB / 1.036 GB, free: 4.66 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.9844, allocations: 416.5 kB / 1.037 GB, free: 4.254 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.9845, allocations: 4 kB / 1.037 GB, free: 4.25 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.9845, allocations: 11.91 kB / 1.037 GB, free: 4.238 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002549/0.9848, allocations: 65.86 kB / 1.037 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.9851, allocations: 123.3 kB / 1.037 GB, free: 4.09 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.9852, allocations: 4 kB / 1.037 GB, free: 4.086 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.9852, allocations: 0 / 1.037 GB, free: 4.086 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.9852, allocations: 0 / 1.037 GB, free: 4.086 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.9866, allocations: 0.5638 MB / 1.038 GB, free: 3.594 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.987, allocations: 107.8 kB / 1.038 GB, free: 3.508 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.9871, allocations: 39.64 kB / 1.038 GB, free: 3.48 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.9871, allocations: 11.92 kB / 1.038 GB, free: 3.469 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.9874, allocations: 105.4 kB / 1.038 GB, free: 3.371 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=13): time 2.545e-06/0.9874, allocations: 0 / 1.038 GB, free: 3.371 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13): time 0.0005513/0.988, allocations: 159.6 kB / 1.038 GB, free: 3.234 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.988, allocations: 85.09 kB / 1.038 GB, free: 3.133 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.9892, allocations: 0.569 MB / 1.039 GB, free: 2.688 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.9893, allocations: 33.2 kB / 1.039 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.9894, allocations: 156.1 kB / 1.039 GB, free: 2.52 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.526e-05/0.9895, allocations: 35.3 kB / 1.039 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.9895, allocations: 0 / 1.039 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.9897, allocations: 371 kB / 1.039 GB, free: 2.141 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.99, allocations: 79.66 kB / 1.039 GB, free: 2.09 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.9903, allocations: 124.5 kB / 1.039 GB, free: 1.984 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.9905, allocations: 85.97 kB / 1.039 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.9905, allocations: 0 / 1.039 GB, free: 1.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006949/0.9912, allocations: 264.3 kB / 1.04 GB, free: 1.715 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.9913, allocations: 10.19 kB / 1.04 GB, free: 1.707 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.9913, allocations: 0 / 1.04 GB, free: 1.707 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.9913, allocations: 0 / 1.04 GB, free: 1.707 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003234/0.9916, allocations: 39.91 kB / 1.04 GB, free: 1.668 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.9917, allocations: 0 / 1.04 GB, free: 1.668 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.992, allocations: 31.89 kB / 1.04 GB, free: 1.637 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.9921, allocations: 6.688 kB / 1.04 GB, free: 1.633 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.runSig,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001426/0.9923, allocations: 114.7 kB / 1.04 GB, free: 1.516 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.9924, allocations: 59.23 kB / 1.04 GB, free: 1.461 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006073/0.993, allocations: 190.8 kB / 1.04 GB, free: 1.301 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.993, allocations: 0 / 1.04 GB, free: 1.301 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.993, allocations: 7.984 kB / 1.04 GB, free: 1.293 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.9931, allocations: 0 / 1.04 GB, free: 1.293 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.9936, allocations: 353.8 kB / 1.04 GB, free: 0.9766 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.9936, allocations: 0 / 1.04 GB, free: 0.9766 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.9937, allocations: 15.98 kB / 1.04 GB, free: 0.9609 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.9937, allocations: 0 / 1.04 GB, free: 0.9609 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.9938, allocations: 0 / 1.04 GB, free: 0.9609 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.9938, allocations: 0 / 1.04 GB, free: 0.9609 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.9938, allocations: 3.938 kB / 1.04 GB, free: 0.957 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000439/0.9942, allocations: 203.3 kB / 1.041 GB, free: 0.7695 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000184/0.9944, allocations: 144.1 kB / 1.041 GB, free: 0.6133 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.78e-05/0.9945, allocations: 3.562 kB / 1.041 GB, free: 0.6133 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.9948, allocations: 15.98 kB / 1.041 GB, free: 0.5977 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.9949, allocations: 14.78 kB / 1.041 GB, free: 0.5859 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.995, allocations: 12 kB / 1.041 GB, free: 0.5742 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0008561/0.9958, allocations: 436.2 kB / 1.041 GB, free: 256 kB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005728/0.9964, allocations: 63.81 kB / 1.041 GB, free: 196 kB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.runSig,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001102/0.9975, allocations: 363.6 kB / 1.042 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000502/0.9981, allocations: 143.7 kB / 1.042 GB, free: 15.82 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.9981, allocations: 0 / 1.042 GB, free: 15.82 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.9982, allocations: 60.17 kB / 1.042 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007718/0.999, allocations: 76.78 kB / 1.042 GB, free: 15.73 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/1.001, allocations: 0.5937 MB / 1.042 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007451/1.002, allocations: 0.9007 MB / 1.043 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of SimCode: time 1.042e-06/1.002, allocations: 0 / 1.043 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of Templates: time 0.01521/1.017, allocations: 3.839 MB / 1.047 GB, free: 10.47 MB / 0.6667 GB