Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.003595/0.003604, allocations: 176.7 kB / 8.148 MB, free: 2.164 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.827/1.827, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00175/0.00175, allocations: 91.16 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.403e-05/1.506e-05, allocations: 4 kB / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2796, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.936/8.215, allocations: 3.632 GB / 3.986 GB, free: 110.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/8.216, allocations: 82.61 kB / 3.986 GB, free: 110.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.561/12.78, allocations: 0.9018 GB / 4.888 GB, free: 23.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003599/12.78, allocations: 80.36 kB / 4.888 GB, free: 23.01 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.02951/12.81, allocations: 5.992 MB / 4.893 GB, free: 19.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/12.81, allocations: 7.125 kB / 4.893 GB, free: 19.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00371/12.81, allocations: 428.6 kB / 4.894 GB, free: 19.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01061/12.82, allocations: 2.4 MB / 4.896 GB, free: 19.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004479/12.82, allocations: 268 kB / 4.896 GB, free: 18.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001925/12.82, allocations: 182.7 kB / 4.897 GB, free: 18.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01629/12.84, allocations: 5.278 MB / 4.902 GB, free: 18.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01831/12.86, allocations: 4.96 MB / 4.907 GB, free: 17.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001738/12.86, allocations: 11.94 kB / 4.907 GB, free: 17.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001696/12.86, allocations: 12 kB / 4.907 GB, free: 17.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003296/12.86, allocations: 275.9 kB / 4.907 GB, free: 17.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0542/12.91, allocations: 20.81 MB / 4.927 GB, free: 14.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00845/12.92, allocations: 2.473 MB / 4.93 GB, free: 11.92 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006898/12.93, allocations: 2.222 MB / 4.932 GB, free: 9.691 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003574/12.93, allocations: 2.695 MB / 4.934 GB, free: 6.469 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008497/12.94, allocations: 2.594 MB / 4.937 GB, free: 3.781 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 7.725e-06/12.94, allocations: 0 / 4.937 GB, free: 3.781 MB / 474.7 MB Notification: Performance of matching and sorting (n=371): time 0.3726/13.31, allocations: 23.44 MB / 4.96 GB, free: 70 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002167/13.32, allocations: 0.598 MB / 4.96 GB, free: 69.31 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003873/13.32, allocations: 1.483 MB / 4.962 GB, free: 69.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001379/13.32, allocations: 35.06 kB / 4.962 GB, free: 69.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/13.32, allocations: 1.054 MB / 4.963 GB, free: 68.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002449/13.32, allocations: 1.262 MB / 4.964 GB, free: 67.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006467/13.33, allocations: 0 / 4.964 GB, free: 67.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003588/13.33, allocations: 485.1 kB / 4.965 GB, free: 67.55 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007506/13.33, allocations: 2.663 MB / 4.967 GB, free: 67.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008968/13.34, allocations: 3.637 MB / 4.971 GB, free: 66.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02508/13.37, allocations: 4.664 MB / 4.975 GB, free: 66.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.075e-05/13.37, allocations: 7.594 kB / 4.975 GB, free: 66.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.0472/13.41, allocations: 9.528 MB / 4.985 GB, free: 66.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002543/13.42, allocations: 9.762 MB / 4.994 GB, free: 56.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001602/13.42, allocations: 26.62 kB / 4.994 GB, free: 56.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/13.43, allocations: 1.973 MB / 4.996 GB, free: 56.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008807/13.44, allocations: 0.9233 MB / 4.997 GB, free: 56.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/13.45, allocations: 6.407 MB / 5.003 GB, free: 52.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008277/13.46, allocations: 420.3 kB / 5.004 GB, free: 52.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/13.46, allocations: 246.8 kB / 5.004 GB, free: 52.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/13.46, allocations: 4.625 kB / 5.004 GB, free: 52.88 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04326/13.5, allocations: 8.966 MB / 5.013 GB, free: 52.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/13.5, allocations: 25.28 kB / 5.013 GB, free: 52.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01053/13.51, allocations: 1.898 MB / 5.015 GB, free: 52.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008865/13.52, allocations: 0.9278 MB / 5.016 GB, free: 52.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/13.53, allocations: 6.193 MB / 5.022 GB, free: 49.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008288/13.54, allocations: 418.8 kB / 5.022 GB, free: 49.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001688/13.54, allocations: 239 kB / 5.022 GB, free: 49.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],NumberOfPeople.nextTimeEvent,$PRE.NumberOfPeople.nextTimeEventScaled,NumberOfPeople.nextTimeEventScaled,PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.00216/13.54, allocations: 141.2 kB / 5.022 GB, free: 49.53 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/13.55, allocations: 278.8 kB / 5.023 GB, free: 49.39 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03202/13.58, allocations: 8.366 MB / 5.031 GB, free: 49.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.438e-05/13.58, allocations: 43.53 kB / 5.031 GB, free: 49.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-05/13.58, allocations: 2.812 kB / 5.031 GB, free: 49.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02376/13.6, allocations: 6.445 MB / 5.037 GB, free: 48.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06047/13.66, allocations: 14.23 MB / 5.051 GB, free: 47.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.596e-05/13.66, allocations: 3.938 kB / 5.051 GB, free: 47.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00721/13.67, allocations: 0.6833 MB / 5.052 GB, free: 47.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0152/13.69, allocations: 2.303 MB / 5.054 GB, free: 47.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001448/13.69, allocations: 142.9 kB / 5.054 GB, free: 47.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/13.7, allocations: 6.1 MB / 5.06 GB, free: 44.53 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.21e-05/13.7, allocations: 4.469 kB / 5.06 GB, free: 44.53 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05082/13.75, allocations: 12.02 MB / 5.072 GB, free: 43.76 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00455/13.75, allocations: 1.038 MB / 5.073 GB, free: 43.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001707/13.76, allocations: 76.19 kB / 5.073 GB, free: 43.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007631/13.76, allocations: 339.1 kB / 5.073 GB, free: 43.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001331/13.76, allocations: 227.8 kB / 5.073 GB, free: 43.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007556/13.76, allocations: 182.2 kB / 5.074 GB, free: 43.51 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002606/13.77, allocations: 1.111 MB / 5.075 GB, free: 43.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01776/13.79, allocations: 3.023 MB / 5.078 GB, free: 43.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 3 ($whenCondition1,NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01405/13.8, allocations: 3.474 MB / 5.081 GB, free: 42.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03018/13.83, allocations: 10.17 MB / 5.091 GB, free: 34.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.527e-05/13.83, allocations: 3.484 kB / 5.091 GB, free: 34.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009791/13.84, allocations: 3.136 MB / 5.094 GB, free: 31.91 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01162/13.85, allocations: 1.11 MB / 5.095 GB, free: 31.14 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03415/13.89, allocations: 9.137 MB / 5.104 GB, free: 24.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007344/13.89, allocations: 2.927 MB / 5.107 GB, free: 21.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/13.89, allocations: 0 / 5.107 GB, free: 21.79 MB / 474.7 MB Notification: Performance of Templates: time 0.4919/14.38, allocations: 152.2 MB / 5.255 GB, free: 41.41 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)