Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001465/0.001465, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.375/1.375, allocations: 194.3 MB / 203.1 MB, free: 9.25 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001621/0.001621, allocations: 119.1 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.812e-05/1.813e-05, allocations: 4 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08598/0.08602, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.638/8.724, allocations: 3.685 GB / 4.019 GB, free: 118.6 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003613/8.725, allocations: 82.64 kB / 4.019 GB, free: 118.6 MB / 395.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 3.776/12.5, allocations: 0.89 GB / 4.909 GB, free: 22.79 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.866e-06/12.5, allocations: 0 / 4.909 GB, free: 22.79 MB / 443.1 MB Notification: Performance of Transformations before backend: time 0.0003406/12.5, allocations: 85.59 kB / 4.91 GB, free: 22.78 MB / 443.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.02875/12.53, allocations: 6.016 MB / 4.915 GB, free: 17.96 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/12.53, allocations: 12.02 kB / 4.915 GB, free: 17.95 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003115/12.53, allocations: 415.7 kB / 4.916 GB, free: 17.54 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006789/12.54, allocations: 2.398 MB / 4.918 GB, free: 15.12 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000287/12.54, allocations: 256.5 kB / 4.918 GB, free: 14.85 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001394/12.54, allocations: 187.9 kB / 4.919 GB, free: 14.66 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008753/12.55, allocations: 5.107 MB / 4.924 GB, free: 9.551 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007571/12.56, allocations: 4.786 MB / 4.928 GB, free: 4.574 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.782e-05/12.56, allocations: 11.94 kB / 4.928 GB, free: 4.562 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004472/12.56, allocations: 8 kB / 4.928 GB, free: 4.555 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002217/12.56, allocations: 257.9 kB / 4.928 GB, free: 4.301 MB / 443.1 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.4144/12.97, allocations: 20.29 MB / 4.948 GB, free: 38.36 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006388/12.98, allocations: 3.303 MB / 4.952 GB, free: 38.33 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003385/12.98, allocations: 2.099 MB / 4.954 GB, free: 38.3 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002065/12.99, allocations: 2.72 MB / 4.956 GB, free: 35.49 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003907/12.99, allocations: 2.414 MB / 4.959 GB, free: 35.28 MB / 459.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001728/12.99, allocations: 190.5 kB / 4.959 GB, free: 35.28 MB / 459.1 MB Notification: Performance of pre-optimization done (n=310): time 6.552e-06/12.99, allocations: 1.5 kB / 4.959 GB, free: 35.28 MB / 459.1 MB Notification: Performance of matching and sorting (n=370): time 0.07928/13.07, allocations: 23.76 MB / 4.982 GB, free: 33.27 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/13.07, allocations: 456.4 kB / 4.982 GB, free: 32.77 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003364/13.07, allocations: 1.449 MB / 4.984 GB, free: 32.57 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001472/13.08, allocations: 30.7 kB / 4.984 GB, free: 32.54 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001642/13.08, allocations: 1.332 MB / 4.985 GB, free: 32.04 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002541/13.08, allocations: 1.253 MB / 4.986 GB, free: 31.39 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003411/13.08, allocations: 3.094 kB / 4.986 GB, free: 31.39 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0003498/13.08, allocations: 487.2 kB / 4.987 GB, free: 31.08 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004246/13.08, allocations: 2.523 MB / 4.989 GB, free: 31.06 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005176/13.09, allocations: 3.502 MB / 4.993 GB, free: 30 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01482/13.11, allocations: 4.515 MB / 4.997 GB, free: 29.95 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.092e-05/13.11, allocations: 7.375 kB / 4.997 GB, free: 29.95 MB / 459.1 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.02673/13.13, allocations: 8.711 MB / 5.006 GB, free: 29.64 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003308/13.14, allocations: 10.92 MB / 5.016 GB, free: 18.45 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.178e-05/13.14, allocations: 31.12 kB / 5.016 GB, free: 18.45 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005956/13.14, allocations: 1.99 MB / 5.018 GB, free: 18.4 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005572/13.15, allocations: 0.941 MB / 5.019 GB, free: 18.4 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008496/13.16, allocations: 6.117 MB / 5.025 GB, free: 15.27 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008643/13.16, allocations: 470.2 kB / 5.026 GB, free: 15.26 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002722/13.17, allocations: 253.3 kB / 5.026 GB, free: 15.26 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/13.17, allocations: 7.375 kB / 5.026 GB, free: 15.26 MB / 459.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03201/13.2, allocations: 8.814 MB / 5.034 GB, free: 15.11 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001624/13.2, allocations: 26.66 kB / 5.035 GB, free: 15.11 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005542/13.2, allocations: 1.913 MB / 5.036 GB, free: 15.07 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005863/13.21, allocations: 0.9574 MB / 5.037 GB, free: 15.07 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00596/13.22, allocations: 5.929 MB / 5.043 GB, free: 11.94 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005893/13.22, allocations: 444.1 kB / 5.044 GB, free: 11.93 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001712/13.22, allocations: 246.6 kB / 5.044 GB, free: 11.93 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 122 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (499): * Single equations (assignments): 489 * 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.003031/13.23, allocations: 225.3 kB / 5.044 GB, free: 11.82 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/13.23, allocations: 278.4 kB / 5.044 GB, free: 11.68 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02007/13.25, allocations: 7.772 MB / 5.052 GB, free: 11.36 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-05/13.25, allocations: 41.31 kB / 5.052 GB, free: 11.36 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.873e-05/13.25, allocations: 2.25 kB / 5.052 GB, free: 11.36 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01395/13.26, allocations: 6.106 MB / 5.058 GB, free: 10.97 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03219/13.3, allocations: 13.19 MB / 5.071 GB, free: 9.055 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/13.3, allocations: 3.953 kB / 5.071 GB, free: 9.051 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003867/13.3, allocations: 0.691 MB / 5.071 GB, free: 9.027 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00759/13.31, allocations: 2.389 MB / 5.074 GB, free: 8.633 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001352/13.31, allocations: 130.4 kB / 5.074 GB, free: 8.605 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005556/13.31, allocations: 5.822 MB / 5.08 GB, free: 4.582 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/13.31, allocations: 3.594 kB / 5.08 GB, free: 4.582 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02481/13.34, allocations: 10.58 MB / 5.09 GB, free: 14.13 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003593/13.34, allocations: 1.014 MB / 5.091 GB, free: 13.27 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001551/13.34, allocations: 69.64 kB / 5.091 GB, free: 13.22 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004581/13.35, allocations: 348.4 kB / 5.091 GB, free: 13.01 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008837/13.35, allocations: 260.9 kB / 5.092 GB, free: 12.85 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008372/13.35, allocations: 177 kB / 5.092 GB, free: 12.71 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.002466/13.35, allocations: 1.066 MB / 5.093 GB, free: 11.77 MB / 475.1 MB Notification: Performance of sort global known variables: time 6.11e-07/13.35, allocations: 0 / 5.093 GB, free: 11.77 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.01522/13.37, allocations: 2.987 MB / 5.096 GB, free: 9.215 MB / 475.1 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 (365): * Single equations (assignments): 353 * 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.01248/13.38, allocations: 3.407 MB / 5.099 GB, free: 7.105 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.02871/13.41, allocations: 10.5 MB / 5.109 GB, free: 15.08 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/13.41, allocations: 0.8438 kB / 5.109 GB, free: 15.08 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007789/13.42, allocations: 3.022 MB / 5.112 GB, free: 12.49 MB / 491.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009275/13.43, allocations: 1.149 MB / 5.113 GB, free: 11.72 MB / 491.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/13.45, allocations: 8.505 MB / 5.122 GB, free: 4.891 MB / 491.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004161/13.45, allocations: 2.473 MB / 5.124 GB, free: 2.953 MB / 491.1 MB Notification: Performance of simCode: alias equations: time 0.01375/13.47, allocations: 2.614 MB / 5.127 GB, free: 1.203 MB / 491.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002518/13.47, allocations: 310.7 kB / 5.127 GB, free: 0.9414 MB / 491.1 MB Notification: Performance of SimCode: time 1.954e-06/13.47, allocations: 0 / 5.127 GB, free: 0.9414 MB / 491.1 MB Notification: Performance of Templates: time 0.531/14, allocations: 110.1 MB / 5.234 GB, free: 49.98 MB / 491.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)