Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water") [: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.223/2.223, allocations: 253.1 MB / 260.4 MB, free: 7.523 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.001636/0.001635, allocations: 185.3 kB / 319.6 MB, free: 3.332 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.968/1.968, allocations: 205.4 MB / 0.5704 GB, free: 15.09 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.001277/0.001277, allocations: 90.33 kB / 0.6746 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.272e-05/1.298e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1895, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.979/6.169, allocations: 2.434 GB / 3.322 GB, free: 242.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/6.169, allocations: 80.73 kB / 3.323 GB, free: 242.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.311/8.48, allocations: 0.5823 GB / 3.905 GB, free: 9.785 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001411/8.48, allocations: 40.31 kB / 3.905 GB, free: 9.75 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.00354/8.484, allocations: 1.345 MB / 3.906 GB, free: 8.367 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/8.484, allocations: 8.031 kB / 3.906 GB, free: 8.359 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00595/8.49, allocations: 0.6442 MB / 3.907 GB, free: 7.715 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00407/8.494, allocations: 0.9382 MB / 3.908 GB, free: 6.746 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/8.494, allocations: 24 kB / 3.908 GB, free: 6.723 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001985/8.494, allocations: 59.83 kB / 3.908 GB, free: 6.664 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001868/8.496, allocations: 0.5663 MB / 3.908 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/8.498, allocations: 0.7991 MB / 3.909 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/8.498, allocations: 7.938 kB / 3.909 GB, free: 5.215 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/8.498, allocations: 7.984 kB / 3.909 GB, free: 5.207 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/8.498, allocations: 24 kB / 3.909 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008426/8.507, allocations: 4.863 MB / 3.914 GB, free: 92 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3242/8.831, allocations: 0.5478 MB / 3.915 GB, free: 283.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/8.832, allocations: 296.9 kB / 3.915 GB, free: 283.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001457/8.833, allocations: 1.6 MB / 3.916 GB, free: 281.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008931/8.834, allocations: 376.4 kB / 3.917 GB, free: 281.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=61): time 3.747e-06/8.834, allocations: 0 / 3.917 GB, free: 281.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=61): time 0.002652/8.837, allocations: 0.7056 MB / 3.917 GB, free: 281.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/8.837, allocations: 58.59 kB / 3.917 GB, free: 281.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/8.838, allocations: 0.8372 MB / 3.918 GB, free: 281.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001175/8.838, allocations: 36.22 kB / 3.918 GB, free: 281.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/8.839, allocations: 379.6 kB / 3.919 GB, free: 281 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/8.839, allocations: 203.4 kB / 3.919 GB, free: 280.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-05/8.839, allocations: 0 / 3.919 GB, free: 280.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.898e-05/8.839, allocations: 337.3 kB / 3.919 GB, free: 280.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008395/8.84, allocations: 252.6 kB / 3.919 GB, free: 280.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/8.841, allocations: 0.5713 MB / 3.92 GB, free: 280.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001998/8.843, allocations: 351.2 kB / 3.92 GB, free: 280.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/8.843, allocations: 3.844 kB / 3.92 GB, free: 280.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00427/8.848, allocations: 0.8774 MB / 3.921 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/8.848, allocations: 8.031 kB / 3.921 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/8.848, allocations: 10.75 kB / 3.921 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.794e-05/8.848, allocations: 11.5 kB / 3.921 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00386/8.852, allocations: 289.5 kB / 3.921 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.044e-05/8.852, allocations: 21.95 kB / 3.922 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/8.855, allocations: 189.1 kB / 3.922 GB, free: 280.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/8.855, allocations: 50.94 kB / 3.922 GB, free: 280.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * 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.000363/8.856, allocations: 141 kB / 3.922 GB, free: 279.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003389/8.856, allocations: 110.7 kB / 3.922 GB, free: 279.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005428/8.862, allocations: 1.072 MB / 3.923 GB, free: 279.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/8.862, allocations: 11.38 kB / 3.923 GB, free: 279.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/8.862, allocations: 3.906 kB / 3.923 GB, free: 279.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/8.862, allocations: 3.891 kB / 3.923 GB, free: 279.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007928/8.87, allocations: 1.99 MB / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/8.87, allocations: 0 / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002928/8.873, allocations: 210.3 kB / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/8.873, allocations: 10.5 kB / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/8.873, allocations: 19.06 kB / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.025e-05/8.873, allocations: 6.906 kB / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/8.873, allocations: 3.906 kB / 3.925 GB, free: 279.5 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005562/8.879, allocations: 1.521 MB / 3.927 GB, free: 279.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009648/8.88, allocations: 302.5 kB / 3.927 GB, free: 278.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003989/8.88, allocations: 3.875 kB / 3.927 GB, free: 278.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002771/8.883, allocations: 132.5 kB / 3.927 GB, free: 278.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/8.883, allocations: 49.19 kB / 3.927 GB, free: 278.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/8.883, allocations: 36 kB / 3.927 GB, free: 278.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001675/8.885, allocations: 0.6344 MB / 3.928 GB, free: 278.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00252/8.887, allocations: 386.2 kB / 3.928 GB, free: 278.8 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * 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.002369/8.89, allocations: 0.7093 MB / 3.929 GB, free: 278.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002807/8.893, allocations: 0.7407 MB / 3.93 GB, free: 278.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/8.893, allocations: 0 / 3.93 GB, free: 278.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001433/8.894, allocations: 415.2 kB / 3.93 GB, free: 278.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003953/8.898, allocations: 330.5 kB / 3.93 GB, free: 278.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008461/8.907, allocations: 1.821 MB / 3.932 GB, free: 278.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002049/8.909, allocations: 1.282 MB / 3.933 GB, free: 277.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.132e-06/8.909, allocations: 0 / 3.933 GB, free: 277.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.05168/8.96, allocations: 19.56 MB / 3.952 GB, free: 277.2 MB / 0.8698 GB