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.001011/0.001011, allocations: 181.9 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.679/1.679, allocations: 194.3 MB / 208.4 MB, free: 6.695 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001575/0.001575, allocations: 116.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.764e-05/2.766e-05, allocations: 4 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07415/0.07419, allocations: 44.5 MB / 349.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.361/9.436, allocations: 3.685 GB / 4.027 GB, free: 27.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003968/9.436, allocations: 84.64 kB / 4.027 GB, free: 27.78 MB / 410.7 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 4.543/13.98, allocations: 0.8983 GB / 4.925 GB, free: 24.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.745e-06/13.98, allocations: 0 / 4.925 GB, free: 24.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004515/13.98, allocations: 77.98 kB / 4.925 GB, free: 24.7 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.02904/14.01, allocations: 6.02 MB / 4.931 GB, free: 21.93 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/14.01, allocations: 13 kB / 4.931 GB, free: 21.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004228/14.01, allocations: 418.2 kB / 4.931 GB, free: 21.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/14.02, allocations: 2.4 MB / 4.934 GB, free: 21.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006173/14.03, allocations: 358.8 kB / 4.934 GB, free: 21.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002214/14.03, allocations: 302.7 kB / 4.934 GB, free: 21.12 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/14.04, allocations: 5.212 MB / 4.939 GB, free: 20.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002788/14.04, allocations: 6.938 kB / 4.939 GB, free: 20.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002158/14.05, allocations: 129.8 kB / 4.94 GB, free: 20.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003738/14.05, allocations: 260.6 kB / 4.94 GB, free: 20.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/14.06, allocations: 5.494 MB / 4.945 GB, free: 20.52 MB / 458.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.04962/14.11, allocations: 20.44 MB / 4.965 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008507/14.12, allocations: 3.481 MB / 4.969 GB, free: 11.52 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004738/14.12, allocations: 2.203 MB / 4.971 GB, free: 11.49 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00361/14.13, allocations: 3.226 MB / 4.974 GB, free: 24.11 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006902/14.13, allocations: 2.52 MB / 4.976 GB, free: 23.93 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003057/14.14, allocations: 272.1 kB / 4.977 GB, free: 23.78 MB / 474.7 MB Notification: Performance of pre-optimization done (n=316): time 2.497e-05/14.14, allocations: 0 / 4.977 GB, free: 23.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=376): time 0.1422/14.28, allocations: 30.16 MB / 5.006 GB, free: 22.32 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002165/14.28, allocations: 328.4 kB / 5.006 GB, free: 21.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/14.28, allocations: 1.842 MB / 5.008 GB, free: 21.71 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001566/14.29, allocations: 93.61 kB / 5.008 GB, free: 21.68 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/14.29, allocations: 1.307 MB / 5.01 GB, free: 21.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002219/14.29, allocations: 1.325 MB / 5.011 GB, free: 20.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/14.29, allocations: 90.12 kB / 5.011 GB, free: 20.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003758/14.29, allocations: 482.9 kB / 5.011 GB, free: 19.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004443/14.29, allocations: 2.582 MB / 5.014 GB, free: 19.46 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005297/14.3, allocations: 3.577 MB / 5.017 GB, free: 17.39 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005386/14.3, allocations: 3.169 MB / 5.02 GB, free: 16.24 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.176e-05/14.3, allocations: 7.656 kB / 5.02 GB, free: 16.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.02332/14.33, allocations: 8.951 MB / 5.029 GB, free: 9.957 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005688/14.33, allocations: 11.12 MB / 5.04 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001004/14.33, allocations: 31.83 kB / 5.04 GB, free: 13.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008032/14.34, allocations: 2.145 MB / 5.042 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00643/14.35, allocations: 0.941 MB / 5.043 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007886/14.36, allocations: 5.923 MB / 5.049 GB, free: 6.223 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006793/14.36, allocations: 0.542 MB / 5.049 GB, free: 5.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/14.36, allocations: 242.6 kB / 5.05 GB, free: 5.609 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/14.36, allocations: 4 kB / 5.05 GB, free: 5.605 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4668/14.83, allocations: 8.11 MB / 5.058 GB, free: 50.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/14.83, allocations: 26.81 kB / 5.058 GB, free: 50.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006556/14.84, allocations: 1.986 MB / 5.06 GB, free: 50.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005854/14.84, allocations: 0.9601 MB / 5.061 GB, free: 50.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006054/14.85, allocations: 5.786 MB / 5.066 GB, free: 47.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006139/14.86, allocations: 0.5197 MB / 5.067 GB, free: 47.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001163/14.86, allocations: 246 kB / 5.067 GB, free: 47.04 MB / 490.7 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.001833/14.86, allocations: 361.6 kB / 5.067 GB, free: 46.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001085/14.86, allocations: 299.4 kB / 5.068 GB, free: 46.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/14.88, allocations: 7.869 MB / 5.075 GB, free: 46.65 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.041e-05/14.88, allocations: 41.33 kB / 5.075 GB, free: 46.65 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/14.88, allocations: 3.469 kB / 5.075 GB, free: 46.65 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008968/14.88, allocations: 5.934 MB / 5.081 GB, free: 46.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02378/14.91, allocations: 12.72 MB / 5.093 GB, free: 45.63 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/14.91, allocations: 3.406 kB / 5.093 GB, free: 45.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/14.91, allocations: 0.7103 MB / 5.094 GB, free: 45.63 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008753/14.92, allocations: 2.542 MB / 5.097 GB, free: 45.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009559/14.92, allocations: 183.6 kB / 5.097 GB, free: 45.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005171/14.93, allocations: 5.608 MB / 5.102 GB, free: 42.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/14.93, allocations: 10.08 kB / 5.102 GB, free: 42.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02602/14.95, allocations: 11.04 MB / 5.113 GB, free: 41.95 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004209/14.96, allocations: 1.052 MB / 5.114 GB, free: 41.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001847/14.96, allocations: 134.7 kB / 5.114 GB, free: 41.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005153/14.96, allocations: 421.2 kB / 5.115 GB, free: 41.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001286/14.97, allocations: 260.3 kB / 5.115 GB, free: 41.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001243/14.97, allocations: 184.7 kB / 5.115 GB, free: 41.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003344/14.97, allocations: 1.379 MB / 5.116 GB, free: 41.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.402e-06/14.97, allocations: 3.25 kB / 5.116 GB, free: 41.52 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01823/14.99, allocations: 3.261 MB / 5.12 GB, free: 41.52 MB / 490.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: 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 (373): * Single equations (assignments): 361 * 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.01529/15, allocations: 3.284 MB / 5.123 GB, free: 41.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02648/15.03, allocations: 10.57 MB / 5.133 GB, free: 40.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-05/15.03, allocations: 4.125 kB / 5.133 GB, free: 40.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008606/15.04, allocations: 3.174 MB / 5.136 GB, free: 40.47 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009728/15.05, allocations: 1.316 MB / 5.138 GB, free: 40.42 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02461/15.07, allocations: 8.755 MB / 5.146 GB, free: 39.26 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003999/15.08, allocations: 2.477 MB / 5.149 GB, free: 38.48 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01065/15.09, allocations: 2.779 MB / 5.151 GB, free: 38.38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001749/15.09, allocations: 329.2 kB / 5.152 GB, free: 38.37 MB / 490.7 MB Notification: Performance of SimCode: time 4.228e-06/15.09, allocations: 0 / 5.152 GB, free: 38.37 MB / 490.7 MB Notification: Performance of Templates: time 0.6293/15.72, allocations: 129.5 MB / 5.278 GB, free: 46.69 MB / 490.7 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)