Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.416/2.416, allocations: 248.6 MB / 255.9 MB, free: 7.152 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001653/0.001653, allocations: 178.7 kB / 315.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.1 MB / 0.5658 GB, free: 376 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00177/0.00177, allocations: 95.23 kB / 0.67 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5122/0.514, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.7359, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.929/6.665, allocations: 2.246 GB / 3.13 GB, free: 123.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/6.666, allocations: 86.89 kB / 3.13 GB, free: 123.3 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 3.229/9.895, allocations: 0.6385 GB / 3.768 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/9.895, allocations: 10.11 kB / 3.768 GB, free: 128.9 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002744/9.898, allocations: 256.7 kB / 3.768 GB, free: 128.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004989/9.903, allocations: 1.123 MB / 3.769 GB, free: 128 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.933e-05/9.903, allocations: 29.38 kB / 3.77 GB, free: 128 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000483/9.903, allocations: 56.09 kB / 3.77 GB, free: 128 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005018/9.909, allocations: 0.7789 MB / 3.77 GB, free: 127.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005452/9.914, allocations: 1.006 MB / 3.771 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.265e-05/9.914, allocations: 6.156 kB / 3.771 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001828/9.914, allocations: 6.344 kB / 3.771 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/9.915, allocations: 32.53 kB / 3.771 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/9.928, allocations: 5.678 MB / 3.777 GB, free: 121 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/9.93, allocations: 0.5081 MB / 3.777 GB, free: 120.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007538/9.931, allocations: 294.6 kB / 3.778 GB, free: 120.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/9.932, allocations: 311.6 kB / 3.778 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.577e-05/9.932, allocations: 46.94 kB / 3.778 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=49): time 6.012e-06/9.932, allocations: 0 / 3.778 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=49): time 0.002551/9.935, allocations: 0.5997 MB / 3.779 GB, free: 119.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/9.935, allocations: 59.84 kB / 3.779 GB, free: 119.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/9.936, allocations: 0.5075 MB / 3.779 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001184/9.936, allocations: 29.7 kB / 3.779 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/9.936, allocations: 426.4 kB / 3.78 GB, free: 118.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/9.937, allocations: 169.5 kB / 3.78 GB, free: 118 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.353e-05/9.937, allocations: 0 / 3.78 GB, free: 118 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000144/9.937, allocations: 386.7 kB / 3.78 GB, free: 117.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005572/9.937, allocations: 229.5 kB / 3.78 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009387/9.938, allocations: 0.5435 MB / 3.781 GB, free: 116.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/9.939, allocations: 363.2 kB / 3.781 GB, free: 116.3 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.547e-06/9.939, allocations: 4 kB / 3.781 GB, free: 116.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002091/9.942, allocations: 0.7713 MB / 3.782 GB, free: 115.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/9.942, allocations: 8 kB / 3.782 GB, free: 115.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/9.942, allocations: 8.875 kB / 3.782 GB, free: 115.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.668e-05/9.942, allocations: 19.84 kB / 3.782 GB, free: 115.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/9.943, allocations: 155.8 kB / 3.782 GB, free: 115.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.36e-05/9.943, allocations: 19.92 kB / 3.782 GB, free: 115.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/9.945, allocations: 99.31 kB / 3.782 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002829/9.945, allocations: 43.89 kB / 3.782 GB, free: 115.2 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.0004017/9.946, allocations: 128.7 kB / 3.782 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004817/9.946, allocations: 79.06 kB / 3.783 GB, free: 115 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/9.949, allocations: 0.5963 MB / 3.783 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.006e-05/9.949, allocations: 11.98 kB / 3.783 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/9.949, allocations: 0 / 3.783 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002303/9.952, allocations: 0.5164 MB / 3.784 GB, free: 113.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006948/9.959, allocations: 1.558 MB / 3.785 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/9.959, allocations: 4 kB / 3.785 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/9.96, allocations: 111.9 kB / 3.785 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/9.96, allocations: 4 kB / 3.785 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.23e-05/9.96, allocations: 4 kB / 3.785 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/9.96, allocations: 7.938 kB / 3.785 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/9.96, allocations: 0 / 3.785 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002322/9.962, allocations: 1.128 MB / 3.786 GB, free: 110.9 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003568/9.966, allocations: 1.916 MB / 3.788 GB, free: 108.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000791/9.967, allocations: 220 kB / 3.788 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/9.967, allocations: 4 kB / 3.788 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/9.968, allocations: 59.84 kB / 3.789 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/9.968, allocations: 31.91 kB / 3.789 GB, free: 108.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.974e-05/9.968, allocations: 19.98 kB / 3.789 GB, free: 108.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007267/9.969, allocations: 395.1 kB / 3.789 GB, free: 108.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003848/9.973, allocations: 0.6592 MB / 3.79 GB, free: 107.5 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.003683/9.977, allocations: 2.125 MB / 3.792 GB, free: 105.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001688/9.979, allocations: 0.5714 MB / 3.792 GB, free: 105 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/9.979, allocations: 0 / 3.792 GB, free: 105 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005847/9.979, allocations: 259.9 kB / 3.792 GB, free: 104.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/9.983, allocations: 355 kB / 3.793 GB, free: 104.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006648/9.99, allocations: 1.486 MB / 3.794 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002476/9.992, allocations: 1.23 MB / 3.795 GB, free: 101.6 MB / 0.8698 GB Notification: Performance of SimCode: time 2.855e-06/9.992, allocations: 0 / 3.795 GB, free: 101.6 MB / 0.8698 GB