Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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/Complex 3.2.1+maint.om/package.mo): time 0.004172/0.004172, allocations: 175.6 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.435/1.435, allocations: 170.6 MB / 178.4 MB, free: 15.16 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00166/0.00166, allocations: 111.9 kB / 217.7 MB, free: 7.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.799e-06/1.014e-05, allocations: 0 / 261.7 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09425, allocations: 38.76 MB / 300.5 MB, free: 3.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.715/9.809, allocations: 3.68 GB / 3.973 GB, free: 59.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/9.809, allocations: 82.58 kB / 3.973 GB, free: 59.1 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Examples/TraceSubstances.mo:112:17-112:29:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Examples/TraceSubstances.mo:122:23-122:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Examples/TraceSubstances.mo:168:23-168:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd: time 4.147/13.96, allocations: 0.8917 GB / 4.865 GB, free: 6.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004497/13.96, allocations: 82.98 kB / 4.865 GB, free: 6.504 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 820 * Number of variables: 820 Notification: Performance of Generate backend data structure: time 0.03621/13.99, allocations: 5.976 MB / 4.871 GB, free: 452 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.43e-05/13.99, allocations: 8.031 kB / 4.871 GB, free: 444 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005091/14, allocations: 415.5 kB / 4.871 GB, free: 24 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/14.01, allocations: 2.417 MB / 4.874 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008881/14.01, allocations: 256.5 kB / 4.874 GB, free: 13.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003789/14.02, allocations: 183.8 kB / 4.874 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01734/14.03, allocations: 5.255 MB / 4.879 GB, free: 7.828 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02402/14.06, allocations: 4.913 MB / 4.884 GB, free: 2.719 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004509/14.06, allocations: 11.94 kB / 4.884 GB, free: 2.707 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00319/14.06, allocations: 10.62 kB / 4.884 GB, free: 2.699 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005418/14.06, allocations: 265.9 kB / 4.884 GB, free: 2.438 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3803/14.44, allocations: 18.97 MB / 4.903 GB, free: 42.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004106/14.45, allocations: 2.377 MB / 4.905 GB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003331/14.45, allocations: 2.162 MB / 4.907 GB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002338/14.45, allocations: 2.719 MB / 4.91 GB, free: 39.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004014/14.46, allocations: 2.48 MB / 4.912 GB, free: 39.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.144e-06/14.46, allocations: 0 / 4.912 GB, free: 39.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=368): time 0.08432/14.54, allocations: 23.19 MB / 4.935 GB, free: 37.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/14.54, allocations: 481.7 kB / 4.935 GB, free: 36.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/14.54, allocations: 1.455 MB / 4.937 GB, free: 36.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001667/14.55, allocations: 31.23 kB / 4.937 GB, free: 36.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001409/14.55, allocations: 1.098 MB / 4.938 GB, free: 35.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00269/14.55, allocations: 1.246 MB / 4.939 GB, free: 35.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003908/14.55, allocations: 2.406 kB / 4.939 GB, free: 35.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003514/14.55, allocations: 479.5 kB / 4.94 GB, free: 34.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004551/14.55, allocations: 2.623 MB / 4.942 GB, free: 34.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005453/14.56, allocations: 3.6 MB / 4.946 GB, free: 33.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01709/14.58, allocations: 4.625 MB / 4.95 GB, free: 33.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/14.58, allocations: 11.03 kB / 4.95 GB, free: 33.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.03146/14.61, allocations: 9.545 MB / 4.959 GB, free: 33.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003736/14.61, allocations: 10.7 MB / 4.97 GB, free: 22.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/14.61, allocations: 27.56 kB / 4.97 GB, free: 22.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006573/14.62, allocations: 1.964 MB / 4.972 GB, free: 22.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006157/14.63, allocations: 0.9267 MB / 4.973 GB, free: 22.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008833/14.63, allocations: 6.345 MB / 4.979 GB, free: 35.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007082/14.64, allocations: 435.9 kB / 4.979 GB, free: 35.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001828/14.64, allocations: 252.5 kB / 4.98 GB, free: 35.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/14.64, allocations: 3.5 kB / 4.98 GB, free: 35.23 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03845/14.68, allocations: 9.458 MB / 4.989 GB, free: 35.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001953/14.68, allocations: 29.28 kB / 4.989 GB, free: 35.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006274/14.69, allocations: 1.895 MB / 4.991 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005994/14.69, allocations: 0.9426 MB / 4.992 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007958/14.7, allocations: 6.165 MB / 4.998 GB, free: 31.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006881/14.71, allocations: 425 kB / 4.998 GB, free: 31.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002061/14.71, allocations: 239.7 kB / 4.998 GB, free: 31.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 14 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 486 * Array equations: 0 * Algorithm blocks: 4 * 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.003457/14.72, allocations: 223 kB / 4.999 GB, free: 31.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002061/14.72, allocations: 274.7 kB / 4.999 GB, free: 31.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02346/14.74, allocations: 8.255 MB / 5.007 GB, free: 31.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.257e-05/14.74, allocations: 38.56 kB / 5.007 GB, free: 31.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-05/14.74, allocations: 6.359 kB / 5.007 GB, free: 31.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01651/14.76, allocations: 6.345 MB / 5.013 GB, free: 30.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03839/14.8, allocations: 12.93 MB / 5.026 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.76e-05/14.8, allocations: 3.75 kB / 5.026 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004616/14.8, allocations: 0.6787 MB / 5.026 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008844/14.81, allocations: 2.28 MB / 5.029 GB, free: 25.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00178/14.81, allocations: 141.4 kB / 5.029 GB, free: 25.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008422/14.82, allocations: 6.04 MB / 5.035 GB, free: 21.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/14.82, allocations: 4.844 kB / 5.035 GB, free: 21.07 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0304/14.85, allocations: 10.82 MB / 5.045 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004452/14.85, allocations: 1.01 MB / 5.046 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0023/14.86, allocations: 72.88 kB / 5.046 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005809/14.86, allocations: 323 kB / 5.047 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00152/14.86, allocations: 232.1 kB / 5.047 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001462/14.87, allocations: 174 kB / 5.047 GB, free: 10.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003213/14.87, allocations: 1.078 MB / 5.048 GB, free: 9.445 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.02064/14.89, allocations: 2.99 MB / 5.051 GB, free: 6.887 MB / 426.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: 2 ($whenCondition1,NumberOfPeople.nextTimeEvent) * Number of discrete states: 1 (NumberOfPeople.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (363): * Single equations (assignments): 352 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 1 * 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.0154/14.91, allocations: 3.402 MB / 5.054 GB, free: 4.785 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.38/15.29, allocations: 10.16 MB / 5.064 GB, free: 59.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/15.29, allocations: 0.9375 kB / 5.064 GB, free: 59.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006355/15.29, allocations: 3.081 MB / 5.067 GB, free: 59.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007275/15.3, allocations: 1.097 MB / 5.068 GB, free: 59.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02423/15.32, allocations: 8.913 MB / 5.077 GB, free: 58.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004381/15.33, allocations: 2.912 MB / 5.08 GB, free: 57.65 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/15.33, allocations: 0 / 5.08 GB, free: 57.65 MB / 426.7 MB Notification: Performance of Templates: time 0.5285/15.86, allocations: 136.4 MB / 5.213 GB, free: 59.75 MB / 426.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)