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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00744/0.00744, allocations: 166.5 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.37/1.37, allocations: 170.8 MB / 186.6 MB, free: 0.9688 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.001771/0.001771, allocations: 110.7 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003115, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2665, allocations: 38.76 MB / 312.9 MB, free: 38.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.378/9.645, allocations: 3.681 GB / 3.986 GB, free: 28.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/9.645, allocations: 83.16 kB / 3.986 GB, free: 28.47 MB / 362.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 - DAE generated: time 3.601/13.25, allocations: 0.8939 GB / 4.88 GB, free: 14.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/13.25, allocations: 0 / 4.88 GB, free: 14.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002819/13.25, allocations: 82.88 kB / 4.88 GB, free: 14.49 MB / 410.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.0225/13.27, allocations: 6.29 MB / 4.886 GB, free: 8.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/13.27, allocations: 8.031 kB / 4.886 GB, free: 8.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/13.27, allocations: 408.1 kB / 4.887 GB, free: 7.762 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006445/13.28, allocations: 2.406 MB / 4.889 GB, free: 5.305 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/13.28, allocations: 360.5 kB / 4.889 GB, free: 4.926 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/13.28, allocations: 299.9 kB / 4.89 GB, free: 4.633 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00802/13.29, allocations: 5.287 MB / 4.895 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.96e-05/13.29, allocations: 11.84 kB / 4.895 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004823/13.29, allocations: 135.9 kB / 4.895 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000266/13.29, allocations: 257.8 kB / 4.895 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009526/13.3, allocations: 5.613 MB / 4.901 GB, free: 9.121 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3091/13.61, allocations: 18.76 MB / 4.919 GB, free: 25.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005707/13.61, allocations: 3.532 MB / 4.922 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002211/13.62, allocations: 3.223 MB / 4.926 GB, free: 22.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004353/13.62, allocations: 2.555 MB / 4.928 GB, free: 21.99 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001721/13.62, allocations: 278.8 kB / 4.928 GB, free: 21.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=314): time 7.004e-06/13.62, allocations: 0 / 4.928 GB, free: 21.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=374): time 0.1241/13.75, allocations: 33.99 MB / 4.962 GB, free: 20.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/13.75, allocations: 350.7 kB / 4.962 GB, free: 19.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002739/13.75, allocations: 1.854 MB / 4.964 GB, free: 19.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001205/13.75, allocations: 99.11 kB / 4.964 GB, free: 19.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/13.75, allocations: 1.309 MB / 4.965 GB, free: 19.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001821/13.75, allocations: 1.314 MB / 4.966 GB, free: 18.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003485/13.75, allocations: 84.75 kB / 4.966 GB, free: 18.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002521/13.75, allocations: 483.4 kB / 4.967 GB, free: 18.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00551/13.76, allocations: 2.89 MB / 4.97 GB, free: 18.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006494/13.77, allocations: 3.879 MB / 4.974 GB, free: 17.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006415/13.77, allocations: 3.458 MB / 4.977 GB, free: 16.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.94e-05/13.77, allocations: 6.812 kB / 4.977 GB, free: 16.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.02042/13.79, allocations: 9.191 MB / 4.986 GB, free: 16.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003088/13.8, allocations: 11.02 MB / 4.997 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.19e-05/13.8, allocations: 25.59 kB / 4.997 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01002/13.81, allocations: 2.738 MB / 4.999 GB, free: 20.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004848/13.81, allocations: 0.9366 MB / 5 GB, free: 20.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009569/13.82, allocations: 6.706 MB / 5.007 GB, free: 17.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006229/13.83, allocations: 0.5349 MB / 5.007 GB, free: 17.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/13.83, allocations: 247.2 kB / 5.008 GB, free: 17.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/13.83, allocations: 7.547 kB / 5.008 GB, free: 17.71 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02275/13.85, allocations: 8.78 MB / 5.016 GB, free: 17.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/13.85, allocations: 27.66 kB / 5.016 GB, free: 17.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009037/13.86, allocations: 2.578 MB / 5.019 GB, free: 17.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00486/13.86, allocations: 0.9569 MB / 5.02 GB, free: 17.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009197/13.87, allocations: 6.557 MB / 5.026 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005651/13.88, allocations: 0.5293 MB / 5.027 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/13.88, allocations: 241.5 kB / 5.027 GB, free: 14.27 MB / 442.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 () * Number of clocked 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.0042/13.88, allocations: 1.108 MB / 5.028 GB, free: 14.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/13.89, allocations: 296.9 kB / 5.028 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01863/13.91, allocations: 8.652 MB / 5.037 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.832e-05/13.91, allocations: 49.14 kB / 5.037 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/13.91, allocations: 0 / 5.037 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01231/13.92, allocations: 6.758 MB / 5.043 GB, free: 9.441 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.028/13.95, allocations: 12.9 MB / 5.056 GB, free: 1.676 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/13.95, allocations: 4 kB / 5.056 GB, free: 1.672 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004083/13.95, allocations: 0.7047 MB / 5.057 GB, free: 1.113 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01354/13.96, allocations: 3.153 MB / 5.06 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001246/13.96, allocations: 192.9 kB / 5.06 GB, free: 14.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008819/13.97, allocations: 6.328 MB / 5.066 GB, free: 9.254 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/13.97, allocations: 0 / 5.066 GB, free: 9.254 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2963/14.27, allocations: 11.3 MB / 5.077 GB, free: 59.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003911/14.27, allocations: 1.055 MB / 5.078 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/14.27, allocations: 132 kB / 5.078 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003991/14.28, allocations: 413.8 kB / 5.079 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005254/14.28, allocations: 257.9 kB / 5.079 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004491/14.28, allocations: 188.8 kB / 5.079 GB, free: 59.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00231/14.28, allocations: 1.4 MB / 5.08 GB, free: 58.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/14.28, allocations: 2.812 kB / 5.08 GB, free: 58.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01241/14.29, allocations: 3.239 MB / 5.084 GB, free: 58.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 360 * 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,1 7,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01166/14.31, allocations: 3.249 MB / 5.087 GB, free: 58.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02656/14.33, allocations: 11.35 MB / 5.098 GB, free: 57.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/14.33, allocations: 4.844 kB / 5.098 GB, free: 57.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007188/14.34, allocations: 3.447 MB / 5.101 GB, free: 57.93 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006579/14.35, allocations: 1.324 MB / 5.102 GB, free: 57.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/14.37, allocations: 11.54 MB / 5.114 GB, free: 54.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002051/14.37, allocations: 2.46 MB / 5.116 GB, free: 53.94 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008874/14.38, allocations: 2.536 MB / 5.119 GB, free: 53.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002133/14.38, allocations: 350.1 kB / 5.119 GB, free: 53.83 MB / 458.7 MB Notification: Performance of SimCode: time 1.502e-06/14.38, allocations: 0 / 5.119 GB, free: 53.83 MB / 458.7 MB Notification: Performance of Templates: time 0.4325/14.81, allocations: 122.2 MB / 5.238 GB, free: 61.81 MB / 458.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)