Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.05/2.05, allocations: 390.4 MB / 397.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 181.2 kB / 490.8 MB, free: 1.941 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 221.3 MB / 0.7863 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000934/0.0009341, allocations: 94.88 kB / 0.9264 GB, free: 14.29 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5649/0.5658, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.8051, allocations: 143 MB / 1.212 GB, free: 40.06 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.19/4.995, allocations: 1.973 GB / 3.184 GB, free: 362.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/4.995, allocations: 91.94 kB / 3.185 GB, free: 362.7 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 1.891/6.886, allocations: 0.6676 GB / 3.852 GB, free: 116.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/6.886, allocations: 8 kB / 3.852 GB, free: 116.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001914/6.888, allocations: 262.3 kB / 3.852 GB, free: 116 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003384/6.891, allocations: 1.124 MB / 3.853 GB, free: 114.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/6.891, allocations: 35.94 kB / 3.853 GB, free: 114.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003111/6.891, allocations: 56 kB / 3.854 GB, free: 114.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001693/6.893, allocations: 0.7809 MB / 3.854 GB, free: 113.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/6.895, allocations: 0.9909 MB / 3.855 GB, free: 112.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/6.895, allocations: 4 kB / 3.855 GB, free: 112.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.968e-05/6.895, allocations: 0 / 3.855 GB, free: 112.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.611e-05/6.895, allocations: 41.98 kB / 3.855 GB, free: 112.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005713/6.901, allocations: 5.845 MB / 3.861 GB, free: 106.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006995/6.902, allocations: 0.5122 MB / 3.862 GB, free: 106 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003481/6.902, allocations: 302.6 kB / 3.862 GB, free: 105.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005172/6.902, allocations: 311.8 kB / 3.862 GB, free: 105.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/6.902, allocations: 35 kB / 3.862 GB, free: 105.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/6.902, allocations: 4 kB / 3.862 GB, free: 105.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=49): time 0.00149/6.904, allocations: 0.6114 MB / 3.863 GB, free: 104.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/6.904, allocations: 55.84 kB / 3.863 GB, free: 104.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006942/6.905, allocations: 0.527 MB / 3.863 GB, free: 104.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.925e-05/6.905, allocations: 33.64 kB / 3.863 GB, free: 104.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/6.905, allocations: 418.5 kB / 3.864 GB, free: 103.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/6.905, allocations: 177.4 kB / 3.864 GB, free: 103.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/6.905, allocations: 0 / 3.864 GB, free: 103.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001054/6.905, allocations: 382.8 kB / 3.864 GB, free: 103.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/6.906, allocations: 233.5 kB / 3.865 GB, free: 102.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/6.906, allocations: 0.5453 MB / 3.865 GB, free: 102.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005306/6.907, allocations: 374.7 kB / 3.865 GB, free: 101.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/6.907, allocations: 4 kB / 3.865 GB, free: 101.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001198/6.908, allocations: 0.7912 MB / 3.866 GB, free: 101 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/6.908, allocations: 6.969 kB / 3.866 GB, free: 101 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/6.908, allocations: 8 kB / 3.866 GB, free: 101 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/6.908, allocations: 16 kB / 3.866 GB, free: 101 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/6.908, allocations: 159.8 kB / 3.866 GB, free: 100.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/6.909, allocations: 19.92 kB / 3.866 GB, free: 100.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/6.91, allocations: 119.5 kB / 3.866 GB, free: 100.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.037e-05/6.91, allocations: 32 kB / 3.867 GB, free: 100.6 MB / 1.151 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.000134/6.91, allocations: 132.7 kB / 3.867 GB, free: 100.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/6.91, allocations: 79.05 kB / 3.867 GB, free: 100.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009406/6.911, allocations: 0.6043 MB / 3.867 GB, free: 99.82 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/6.911, allocations: 8 kB / 3.867 GB, free: 99.82 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/6.911, allocations: 3.984 kB / 3.867 GB, free: 99.81 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007149/6.912, allocations: 0.5241 MB / 3.868 GB, free: 99.27 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/6.914, allocations: 1.548 MB / 3.869 GB, free: 97.66 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/6.914, allocations: 0 / 3.869 GB, free: 97.66 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005675/6.915, allocations: 115.8 kB / 3.869 GB, free: 97.55 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/6.915, allocations: 7.906 kB / 3.869 GB, free: 97.54 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.6e-05/6.915, allocations: 4 kB / 3.869 GB, free: 97.54 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/6.915, allocations: 4 kB / 3.869 GB, free: 97.53 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/6.915, allocations: 7.938 kB / 3.869 GB, free: 97.52 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001247/6.916, allocations: 1.089 MB / 3.871 GB, free: 96.35 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001839/6.918, allocations: 1.897 MB / 3.872 GB, free: 94.37 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/6.918, allocations: 216 kB / 3.873 GB, free: 94.14 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/6.919, allocations: 7.906 kB / 3.873 GB, free: 94.13 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006991/6.919, allocations: 55.88 kB / 3.873 GB, free: 94.07 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/6.919, allocations: 31.88 kB / 3.873 GB, free: 94.04 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/6.919, allocations: 19.98 kB / 3.873 GB, free: 94.02 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004337/6.92, allocations: 403.1 kB / 3.873 GB, free: 93.63 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002572/6.922, allocations: 0.6515 MB / 3.874 GB, free: 92.98 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,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.003027/6.925, allocations: 2.144 MB / 3.876 GB, free: 90.76 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0009931/6.926, allocations: 0.5763 MB / 3.876 GB, free: 90.18 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/6.926, allocations: 0 / 3.876 GB, free: 90.18 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003344/6.927, allocations: 263.5 kB / 3.877 GB, free: 89.93 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/6.929, allocations: 349.6 kB / 3.877 GB, free: 89.59 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/6.932, allocations: 1.509 MB / 3.878 GB, free: 88.03 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/6.933, allocations: 1.225 MB / 3.88 GB, free: 86.78 MB / 1.151 GB Notification: Performance of SimCode: time 1.333e-06/6.933, allocations: 0 / 3.88 GB, free: 86.78 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)