Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") [: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.7269/0.7269, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001705/0.001705, allocations: 160 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.663e-06/6.763e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04385/0.04387, allocations: 25.16 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.532/2.576, allocations: 1.248 GB / 1.442 GB, free: 55.27 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/2.576, allocations: 75.58 kB / 1.442 GB, free: 55.27 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 freshAir.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 peopleSource.medium.preferredMediumStates then StateSelect.prefer else StateSelect.default' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd: time 1.874/4.451, allocations: 456.2 MB / 1.887 GB, free: 16.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001925/4.451, allocations: 39.11 kB / 1.887 GB, free: 16.18 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: 308 * Number of variables: 308 Notification: Performance of Generate backend data structure: time 0.01277/4.464, allocations: 2.991 MB / 1.89 GB, free: 14.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/4.464, allocations: 6.75 kB / 1.89 GB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/4.465, allocations: 174.6 kB / 1.89 GB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/4.468, allocations: 0.9345 MB / 1.891 GB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/4.468, allocations: 159.5 kB / 1.891 GB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003598/4.469, allocations: 75.38 kB / 1.891 GB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002784/4.471, allocations: 1.593 MB / 1.893 GB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002649/4.474, allocations: 1.65 MB / 1.895 GB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.764e-05/4.474, allocations: 5.562 kB / 1.895 GB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001618/4.474, allocations: 0 / 1.895 GB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.949e-05/4.474, allocations: 80.2 kB / 1.895 GB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01078/4.485, allocations: 7.287 MB / 1.902 GB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/4.487, allocations: 0.7267 MB / 1.903 GB, free: 9.906 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008708/4.488, allocations: 0.5602 MB / 1.903 GB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001272/4.489, allocations: 1.721 MB / 1.905 GB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/4.489, allocations: 52.66 kB / 1.905 GB, free: 7.805 MB / 266.7 MB Notification: Performance of pre-optimization done (n=99): time 4.158e-06/4.489, allocations: 0.6562 kB / 1.905 GB, free: 7.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=111): time 0.01815/4.507, allocations: 4.485 MB / 1.909 GB, free: 6.332 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/4.507, allocations: 167 kB / 1.909 GB, free: 6.145 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Blocks/Continuous.mo:858:5-861:73:writable] Warning: Parameter PID.Td has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/4.509, allocations: 0.7614 MB / 1.91 GB, free: 5.797 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/4.509, allocations: 27.64 kB / 1.91 GB, free: 5.766 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004023/4.509, allocations: 0.5343 MB / 1.911 GB, free: 5.355 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000369/4.51, allocations: 377.6 kB / 1.911 GB, free: 5.066 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/4.51, allocations: 1.281 kB / 1.911 GB, free: 5.066 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/4.51, allocations: 371.5 kB / 1.911 GB, free: 4.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009805/4.511, allocations: 0.6246 MB / 1.912 GB, free: 4.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/4.512, allocations: 1.087 MB / 1.913 GB, free: 3.453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002412/4.514, allocations: 0.9208 MB / 1.914 GB, free: 2.699 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/4.514, allocations: 11.83 kB / 1.914 GB, free: 2.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.008179/4.523, allocations: 2.662 MB / 1.917 GB, free: 476 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/4.523, allocations: 4 kB / 1.917 GB, free: 472 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-05/4.523, allocations: 12.69 kB / 1.917 GB, free: 460 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/4.525, allocations: 459.9 kB / 1.917 GB, free: 104 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002815/4.528, allocations: 430 kB / 1.917 GB, free: 0 / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/4.53, allocations: 1.503 MB / 1.919 GB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002412/4.532, allocations: 122.4 kB / 1.919 GB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005131/4.533, allocations: 91.5 kB / 1.919 GB, free: 14.34 MB / 282.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: 63 * Number of states: 0 () * Number of discrete variables: 3 (traceVolume.ind,traceSource.ind,NumberOfPeople.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 176 * 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.0008903/4.534, allocations: 156.2 kB / 1.919 GB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000743/4.534, allocations: 126.5 kB / 1.919 GB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006051/4.54, allocations: 1.853 MB / 1.921 GB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/4.541, allocations: 12 kB / 1.921 GB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/4.541, allocations: 0 / 1.921 GB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/4.541, allocations: 17.25 kB / 1.921 GB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007865/4.548, allocations: 3.046 MB / 1.924 GB, free: 9.969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/4.548, allocations: 2.406 kB / 1.924 GB, free: 9.969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/4.55, allocations: 211.8 kB / 1.924 GB, free: 9.793 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001631/4.551, allocations: 316.2 kB / 1.925 GB, free: 9.559 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/4.552, allocations: 25.14 kB / 1.925 GB, free: 9.543 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/4.553, allocations: 0.8402 MB / 1.926 GB, free: 8.719 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/4.553, allocations: 7.094 kB / 1.926 GB, free: 8.715 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005503/4.558, allocations: 2.388 MB / 1.928 GB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/4.56, allocations: 365.8 kB / 1.928 GB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004948/4.56, allocations: 10.81 kB / 1.928 GB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/4.562, allocations: 89.59 kB / 1.928 GB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/4.562, allocations: 66.2 kB / 1.928 GB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/4.562, allocations: 61.56 kB / 1.928 GB, free: 6.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.001223/4.563, allocations: 0.5796 MB / 1.929 GB, free: 5.488 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.005559/4.569, allocations: 0.9803 MB / 1.93 GB, free: 4.539 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC[1],PID.I.y) * Number of discrete variables: 1 (NumberOfPeople.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00714/4.576, allocations: 2.158 MB / 1.932 GB, free: 2.855 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003816/4.58, allocations: 1.548 MB / 1.934 GB, free: 1.422 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/4.58, allocations: 320 / 1.934 GB, free: 1.422 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/4.582, allocations: 0.6778 MB / 1.934 GB, free: 0.7891 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/4.585, allocations: 479.9 kB / 1.935 GB, free: 460 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1966/4.782, allocations: 2.353 MB / 1.937 GB, free: 41.67 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/4.783, allocations: 1.47 MB / 1.938 GB, free: 40.95 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/4.783, allocations: 0 / 1.938 GB, free: 40.95 MB / 282.7 MB Notification: Performance of Templates: time 0.06249/4.846, allocations: 39.47 MB / 1.977 GB, free: 38.79 MB / 282.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)