Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.881/0.881, allocations: 110.8 MB / 118 MB, free: 14.58 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001794/0.001794, allocations: 152 kB / 143.7 MB, free: 4.914 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.49e-06/5.52e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04565/0.04567, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.412/2.458, allocations: 1.245 GB / 1.439 GB, free: 53.34 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/2.458, allocations: 66.42 kB / 1.439 GB, free: 53.34 MB / 234.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if boundary4.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if volume.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Media/Air.mo:113:10-113:95:writable] Warning: Non-array modification 'if boundary1.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd: time 1.553/4.011, allocations: 418.5 MB / 1.848 GB, free: 17.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001037/4.011, allocations: 24.02 kB / 1.848 GB, free: 17.06 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.009927/4.021, allocations: 2.537 MB / 1.85 GB, free: 15.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/4.021, allocations: 5.688 kB / 1.85 GB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007132/4.022, allocations: 116.8 kB / 1.851 GB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/4.024, allocations: 0.683 MB / 1.851 GB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/4.024, allocations: 106.3 kB / 1.851 GB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/4.025, allocations: 57.19 kB / 1.851 GB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00234/4.027, allocations: 1.158 MB / 1.853 GB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002278/4.029, allocations: 1.204 MB / 1.854 GB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/4.029, allocations: 1.719 kB / 1.854 GB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/4.029, allocations: 7.375 kB / 1.854 GB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.121e-05/4.03, allocations: 67.11 kB / 1.854 GB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008595/4.038, allocations: 5.601 MB / 1.859 GB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009242/4.039, allocations: 0.5101 MB / 1.86 GB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/4.04, allocations: 390.3 kB / 1.86 GB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009042/4.041, allocations: 1.374 MB / 1.861 GB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/4.041, allocations: 43.83 kB / 1.862 GB, free: 10.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=68): time 2.735e-06/4.041, allocations: 0 / 1.862 GB, free: 10.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=80): time 0.01602/4.057, allocations: 3.683 MB / 1.865 GB, free: 10.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/4.057, allocations: 115.6 kB / 1.865 GB, free: 10.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/4.058, allocations: 0.5406 MB / 1.866 GB, free: 9.977 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002076/4.058, allocations: 28.98 kB / 1.866 GB, free: 9.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/4.058, allocations: 416.9 kB / 1.866 GB, free: 9.668 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003029/4.059, allocations: 282.9 kB / 1.866 GB, free: 9.488 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/4.059, allocations: 0 / 1.866 GB, free: 9.488 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/4.059, allocations: 387.1 kB / 1.867 GB, free: 9.176 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008936/4.06, allocations: 489.9 kB / 1.867 GB, free: 9.172 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/4.061, allocations: 0.8281 MB / 1.868 GB, free: 8.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/4.063, allocations: 0.7241 MB / 1.869 GB, free: 8.734 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/4.063, allocations: 3.75 kB / 1.869 GB, free: 8.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004977/4.068, allocations: 1.823 MB / 1.871 GB, free: 8.629 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/4.068, allocations: 6.75 kB / 1.871 GB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/4.068, allocations: 10.22 kB / 1.871 GB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/4.07, allocations: 451.2 kB / 1.871 GB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/4.072, allocations: 257.4 kB / 1.871 GB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/4.073, allocations: 1.489 MB / 1.873 GB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/4.075, allocations: 90.58 kB / 1.873 GB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000292/4.076, allocations: 78.62 kB / 1.873 GB, free: 7.562 MB / 266.7 MB Warning: Assuming fixed start value for the following 1 variables: volume.mC[1]:VARIABLE(min = 0.0 unit = "kg" ) "Masses of trace substances in the fluid" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 2 (traceVolume.ind,traceSource.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005287/4.076, allocations: 141.3 kB / 1.873 GB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003949/4.077, allocations: 79.19 kB / 1.873 GB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/4.081, allocations: 1.42 MB / 1.874 GB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/4.081, allocations: 8.406 kB / 1.874 GB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/4.081, allocations: 4.5 kB / 1.874 GB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/4.081, allocations: 7.797 kB / 1.874 GB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005386/4.086, allocations: 2.277 MB / 1.877 GB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/4.086, allocations: 3.906 kB / 1.877 GB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007937/4.087, allocations: 151.4 kB / 1.877 GB, free: 6.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001453/4.089, allocations: 317.3 kB / 1.877 GB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/4.089, allocations: 18.95 kB / 1.877 GB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000885/4.09, allocations: 0.8394 MB / 1.878 GB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.397e-06/4.09, allocations: 5.156 kB / 1.878 GB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003577/4.093, allocations: 1.772 MB / 1.88 GB, free: 6.086 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008323/4.094, allocations: 291.6 kB / 1.88 GB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003361/4.095, allocations: 9.719 kB / 1.88 GB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/4.096, allocations: 62.92 kB / 1.88 GB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/4.096, allocations: 51.44 kB / 1.88 GB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/4.096, allocations: 45.64 kB / 1.88 GB, free: 5.949 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0007697/4.097, allocations: 431.6 kB / 1.881 GB, free: 5.855 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.004456/4.101, allocations: 0.8516 MB / 1.881 GB, free: 5.703 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 78 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006158/4.107, allocations: 1.97 MB / 1.883 GB, free: 5.324 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/4.11, allocations: 1.213 MB / 1.885 GB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/4.11, allocations: 0.75 kB / 1.885 GB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/4.111, allocations: 0.5008 MB / 1.885 GB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/4.114, allocations: 362.2 kB / 1.885 GB, free: 5.223 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005864/4.119, allocations: 1.788 MB / 1.887 GB, free: 4.867 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/4.121, allocations: 1.235 MB / 1.888 GB, free: 20.16 MB / 282.7 MB Notification: Performance of SimCode: time 1.613e-06/4.121, allocations: 0 / 1.888 GB, free: 20.16 MB / 282.7 MB Notification: Performance of Templates: time 0.06135/4.182, allocations: 33.14 MB / 1.921 GB, free: 11.59 MB / 282.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)