Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Sensors.Examples.TraceSubstances") [: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.275/2.275, allocations: 253.1 MB / 260.4 MB, free: 7.48 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.001621/0.00162, allocations: 176.9 kB / 319.6 MB, free: 3.305 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.022/2.022, 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.001363/0.001363, allocations: 87.34 kB / 0.6746 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.537e-05/1.567e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2582, allocations: 106.3 MB / 0.888 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.28/6.539, allocations: 2.246 GB / 3.134 GB, free: 116.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/6.539, allocations: 86.05 kB / 3.134 GB, free: 116.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.245/9.784, allocations: 0.6372 GB / 3.771 GB, free: 141 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001647/9.784, allocations: 30.5 kB / 3.771 GB, free: 141 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.006763/9.791, allocations: 1.316 MB / 3.773 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.777e-05/9.791, allocations: 8.031 kB / 3.773 GB, free: 139.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004205/9.795, allocations: 266.3 kB / 3.773 GB, free: 139.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006548/9.802, allocations: 1.116 MB / 3.774 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.108e-05/9.802, allocations: 28 kB / 3.774 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004299/9.803, allocations: 60 kB / 3.774 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003644/9.806, allocations: 0.7809 MB / 3.775 GB, free: 137.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004172/9.811, allocations: 1.006 MB / 3.776 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.164e-05/9.811, allocations: 3.938 kB / 3.776 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/9.811, allocations: 4 kB / 3.776 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.58e-05/9.811, allocations: 38 kB / 3.776 GB, free: 136.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01304/9.824, allocations: 5.667 MB / 3.781 GB, free: 130.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/9.826, allocations: 0.5205 MB / 3.782 GB, free: 129.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009363/9.827, allocations: 295.3 kB / 3.782 GB, free: 129.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/9.828, allocations: 314.2 kB / 3.783 GB, free: 129 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/9.828, allocations: 39 kB / 3.783 GB, free: 129 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=49): time 5.911e-06/9.828, allocations: 0 / 3.783 GB, free: 129 MB / 0.8698 GB Notification: Performance of matching and sorting (n=49): time 0.003501/9.832, allocations: 0.5997 MB / 3.783 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/9.832, allocations: 55.84 kB / 3.783 GB, free: 128.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/9.833, allocations: 0.5153 MB / 3.784 GB, free: 127.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001946/9.834, allocations: 29.64 kB / 3.784 GB, free: 127.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003866/9.834, allocations: 426.4 kB / 3.784 GB, free: 127.3 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000391/9.834, allocations: 173.4 kB / 3.784 GB, free: 127.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/9.835, allocations: 4 kB / 3.784 GB, free: 127.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002234/9.835, allocations: 382.8 kB / 3.785 GB, free: 126.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008644/9.836, allocations: 229.5 kB / 3.785 GB, free: 126.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/9.837, allocations: 0.528 MB / 3.785 GB, free: 125.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/9.839, allocations: 368.8 kB / 3.786 GB, free: 125.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/9.839, allocations: 0 / 3.786 GB, free: 125.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002973/9.842, allocations: 0.7835 MB / 3.787 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/9.842, allocations: 4 kB / 3.787 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/9.842, allocations: 11.98 kB / 3.787 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.614e-05/9.842, allocations: 15.91 kB / 3.787 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/9.843, allocations: 155.8 kB / 3.787 GB, free: 124.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/9.843, allocations: 15.98 kB / 3.787 GB, free: 124.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/9.845, allocations: 115.4 kB / 3.787 GB, free: 124.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/9.845, allocations: 32 kB / 3.787 GB, free: 124.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0002682/9.845, allocations: 132.7 kB / 3.787 GB, free: 124.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001954/9.845, allocations: 75.06 kB / 3.787 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001748/9.847, allocations: 0.6 MB / 3.788 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/9.847, allocations: 8 kB / 3.788 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/9.847, allocations: 0 / 3.788 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001185/9.848, allocations: 0.5125 MB / 3.788 GB, free: 123 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004146/9.852, allocations: 1.547 MB / 3.79 GB, free: 121.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/9.852, allocations: 0 / 3.79 GB, free: 121.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/9.854, allocations: 116 kB / 3.79 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.359e-05/9.854, allocations: 8 kB / 3.79 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.85e-05/9.854, allocations: 19.86 kB / 3.79 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/9.854, allocations: 8 kB / 3.79 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/9.854, allocations: 4 kB / 3.79 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002252/9.856, allocations: 1.124 MB / 3.791 GB, free: 120.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007081/9.857, allocations: 212.1 kB / 3.791 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002505/9.857, allocations: 11.89 kB / 3.791 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/9.858, allocations: 55.88 kB / 3.791 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.693e-05/9.858, allocations: 31.88 kB / 3.791 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.027e-05/9.858, allocations: 23.98 kB / 3.791 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007509/9.859, allocations: 395.1 kB / 3.792 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002065/9.861, allocations: 419.2 kB / 3.792 GB, free: 118.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * 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 Backend phase and start with SimCode phase: time 0.003567/9.865, allocations: 2.133 MB / 3.794 GB, free: 117 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001519/9.866, allocations: 0.5602 MB / 3.795 GB, free: 116.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/9.866, allocations: 4 kB / 3.795 GB, free: 116.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005381/9.867, allocations: 268.7 kB / 3.795 GB, free: 116.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/9.87, allocations: 357.5 kB / 3.795 GB, free: 115.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/9.875, allocations: 1.48 MB / 3.797 GB, free: 114.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/9.876, allocations: 1.212 MB / 3.798 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.533e-06/9.876, allocations: 0 / 3.798 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.07195/9.948, allocations: 23.85 MB / 3.821 GB, free: 89.51 MB / 0.8698 GB