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.001013/0.001013, allocations: 169.9 kB / 12.72 MB, free: 2.594 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.174/1.174, allocations: 170.6 MB / 183.8 MB, free: 11.43 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.001604/0.001603, allocations: 107.4 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.848e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08369/0.08373, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.48/8.563, allocations: 3.68 GB / 3.981 GB, free: 31.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/8.564, allocations: 81.77 kB / 3.981 GB, free: 31.54 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.806/12.37, allocations: 0.8925 GB / 4.873 GB, free: 21.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/12.37, allocations: 3.938 kB / 4.873 GB, free: 21.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000243/12.37, allocations: 82.03 kB / 4.873 GB, free: 21.02 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.02734/12.4, allocations: 6.004 MB / 4.879 GB, free: 17.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/12.4, allocations: 7.562 kB / 4.879 GB, free: 17.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00341/12.4, allocations: 401.8 kB / 4.88 GB, free: 17.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007891/12.41, allocations: 2.4 MB / 4.882 GB, free: 17.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003833/12.41, allocations: 365.1 kB / 4.882 GB, free: 16.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001666/12.41, allocations: 304.3 kB / 4.883 GB, free: 16.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008939/12.42, allocations: 5.208 MB / 4.888 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-05/12.42, allocations: 11.94 kB / 4.888 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004856/12.42, allocations: 132 kB / 4.888 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002486/12.42, allocations: 252.4 kB / 4.888 GB, free: 12.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007967/12.43, allocations: 5.489 MB / 4.894 GB, free: 6.719 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.03585/12.46, allocations: 18.78 MB / 4.912 GB, free: 3.191 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3723/12.84, allocations: 3.453 MB / 4.915 GB, free: 36.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004957/12.84, allocations: 2.193 MB / 4.917 GB, free: 36.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002694/12.84, allocations: 3.224 MB / 4.921 GB, free: 32.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006286/12.85, allocations: 2.507 MB / 4.923 GB, free: 32.69 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002449/12.85, allocations: 277.6 kB / 4.923 GB, free: 32.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=314): time 1.041e-05/12.85, allocations: 0 / 4.923 GB, free: 32.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=374): time 0.1096/12.96, allocations: 30.1 MB / 4.953 GB, free: 31.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002041/12.96, allocations: 353.9 kB / 4.953 GB, free: 31.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/12.97, allocations: 1.831 MB / 4.955 GB, free: 30.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001665/12.97, allocations: 101.7 kB / 4.955 GB, free: 30.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/12.97, allocations: 1.308 MB / 4.956 GB, free: 30.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002259/12.97, allocations: 1.313 MB / 4.957 GB, free: 29.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003532/12.97, allocations: 86.91 kB / 4.957 GB, free: 29.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000292/12.97, allocations: 484.2 kB / 4.958 GB, free: 29.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004449/12.98, allocations: 2.565 MB / 4.96 GB, free: 29.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004687/12.98, allocations: 3.57 MB / 4.964 GB, free: 28.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004729/12.99, allocations: 3.142 MB / 4.967 GB, free: 28.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-05/12.99, allocations: 12.31 kB / 4.967 GB, free: 28.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.01733/13, allocations: 8.288 MB / 4.975 GB, free: 27.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002689/13.01, allocations: 11.03 MB / 4.986 GB, free: 16.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.489e-05/13.01, allocations: 25.19 kB / 4.986 GB, free: 16.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007039/13.01, allocations: 2.151 MB / 4.988 GB, free: 16.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005134/13.02, allocations: 0.9351 MB / 4.989 GB, free: 16.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005839/13.03, allocations: 5.918 MB / 4.995 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006547/13.03, allocations: 0.5391 MB / 4.995 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00147/13.03, allocations: 246.3 kB / 4.995 GB, free: 12.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/13.03, allocations: 3.656 kB / 4.995 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01613/13.05, allocations: 7.887 MB / 5.003 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/13.05, allocations: 26.44 kB / 5.003 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005929/13.06, allocations: 1.985 MB / 5.005 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005103/13.06, allocations: 0.957 MB / 5.006 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005573/13.07, allocations: 5.781 MB / 5.012 GB, free: 25.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0058/13.07, allocations: 0.5293 MB / 5.012 GB, free: 25.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000716/13.07, allocations: 239.2 kB / 5.012 GB, free: 25.45 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 () * 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.001666/13.07, allocations: 364.4 kB / 5.013 GB, free: 25.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008308/13.08, allocations: 302 kB / 5.013 GB, free: 25.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/13.09, allocations: 7.839 MB / 5.021 GB, free: 24.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-05/13.09, allocations: 43.22 kB / 5.021 GB, free: 24.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/13.09, allocations: 3.562 kB / 5.021 GB, free: 24.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008179/13.1, allocations: 5.921 MB / 5.027 GB, free: 24.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02623/13.12, allocations: 13.47 MB / 5.04 GB, free: 20.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.949e-05/13.12, allocations: 4.375 kB / 5.04 GB, free: 20.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003938/13.13, allocations: 0.7032 MB / 5.04 GB, free: 20.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008709/13.14, allocations: 2.548 MB / 5.043 GB, free: 19.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001243/13.14, allocations: 181.1 kB / 5.043 GB, free: 19.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005312/13.14, allocations: 5.614 MB / 5.049 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/13.14, allocations: 0 / 5.049 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02006/13.16, allocations: 10.46 MB / 5.059 GB, free: 5.941 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003807/13.17, allocations: 1.051 MB / 5.06 GB, free: 5.043 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009221/13.17, allocations: 135.4 kB / 5.06 GB, free: 4.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003657/13.17, allocations: 420 kB / 5.06 GB, free: 4.656 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005258/13.17, allocations: 254.9 kB / 5.061 GB, free: 4.504 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004654/13.17, allocations: 189.8 kB / 5.061 GB, free: 4.352 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002562/13.18, allocations: 1.379 MB / 5.062 GB, free: 3.094 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/13.18, allocations: 1.688 kB / 5.062 GB, free: 3.094 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01312/13.19, allocations: 3.242 MB / 5.065 GB, free: 312 kB / 442.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) * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01033/13.2, allocations: 3.245 MB / 5.068 GB, free: 14.37 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02111/13.22, allocations: 10.5 MB / 5.079 GB, free: 5.066 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/13.22, allocations: 1.062 kB / 5.079 GB, free: 5.066 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006112/13.23, allocations: 3.165 MB / 5.082 GB, free: 2.305 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007929/13.23, allocations: 1.313 MB / 5.083 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3403/13.58, allocations: 9.178 MB / 5.092 GB, free: 61.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002323/13.58, allocations: 2.464 MB / 5.094 GB, free: 60.77 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01223/13.59, allocations: 2.789 MB / 5.097 GB, free: 60.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/13.59, allocations: 323.8 kB / 5.097 GB, free: 60.72 MB / 458.7 MB Notification: Performance of SimCode: time 1.362e-06/13.59, allocations: 0.8438 kB / 5.097 GB, free: 60.72 MB / 458.7 MB Notification: Performance of Templates: time 0.1734/13.76, allocations: 129.2 MB / 5.224 GB, free: 19.49 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)