Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008714/0.0008714, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004922/0.004922, allocations: 169.4 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004629/0.0004628, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2699, allocations: 47.57 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.5693/0.8392, allocations: 273.4 MB / 0.5863 GB, free: 14.74 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02772/0.8669, allocations: 15.92 MB / 0.6019 GB, free: 14.77 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003838/0.8708, allocations: 75.44 kB / 0.602 GB, free: 14.7 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003786/0.8746, allocations: 1.046 MB / 0.603 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01691/0.8916, allocations: 5.308 MB / 0.6082 GB, free: 8.316 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01652/0.9081, allocations: 5.546 MB / 0.6136 GB, free: 2.758 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01307/0.9212, allocations: 11.37 MB / 0.6247 GB, free: 7.363 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004532/0.9258, allocations: 1.925 MB / 0.6266 GB, free: 5.406 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01466/0.9405, allocations: 5.292 MB / 0.6317 GB, free: 100 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3264/1.267, allocations: 3.252 MB / 0.6349 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002466/1.269, allocations: 171.7 kB / 0.6351 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02446/1.294, allocations: 10.79 MB / 0.6456 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004301/1.298, allocations: 1.675 MB / 0.6472 GB, free: 7.672 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004748/1.303, allocations: 1.899 MB / 0.6491 GB, free: 7.641 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02751/1.331, allocations: 10.41 MB / 0.6593 GB, free: 7.215 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/1.331, allocations: 0 / 0.6593 GB, free: 7.215 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.494e-06/1.331, allocations: 1.969 kB / 0.6593 GB, free: 7.215 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0002808/1.331, allocations: 0.8438 kB / 0.6593 GB, free: 7.215 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.01658/1.348, allocations: 4.702 MB / 0.6639 GB, free: 5.281 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/1.348, allocations: 8.125 kB / 0.6639 GB, free: 5.281 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00323/1.351, allocations: 413.4 kB / 0.6643 GB, free: 5.094 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007898/1.359, allocations: 2.731 MB / 0.6669 GB, free: 4.539 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000373/1.359, allocations: 351.7 kB / 0.6673 GB, free: 4.406 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/1.36, allocations: 291.5 kB / 0.6675 GB, free: 4.402 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009395/1.37, allocations: 5.425 MB / 0.6728 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-05/1.37, allocations: 12.78 kB / 0.6728 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000418/1.37, allocations: 128.2 kB / 0.673 GB, free: 3.914 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004674/1.371, allocations: 406.9 kB / 0.6734 GB, free: 3.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/1.381, allocations: 5.706 MB / 0.6789 GB, free: 3.719 MB / 478.1 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.03654/1.417, allocations: 22.03 MB / 0.7004 GB, free: 5.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006217/1.424, allocations: 3.744 MB / 0.7041 GB, free: 5.281 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003516/1.427, allocations: 2.314 MB / 0.7064 GB, free: 4.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003824/1.431, allocations: 3.842 MB / 0.7101 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006301/1.437, allocations: 2.704 MB / 0.7128 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001951/1.439, allocations: 288.3 kB / 0.713 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=317): time 9.658e-06/1.439, allocations: 0 / 0.713 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=377): time 0.1242/1.564, allocations: 33.62 MB / 0.7459 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003347/1.564, allocations: 483 kB / 0.7463 GB, free: 1.559 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/1.569, allocations: 2.235 MB / 0.7485 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001946/1.571, allocations: 97.7 kB / 0.7486 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002199/1.573, allocations: 1.324 MB / 0.7499 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00425/1.577, allocations: 1.326 MB / 0.7512 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009554/1.578, allocations: 358.8 kB / 0.7515 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001232/1.578, allocations: 301.1 kB / 0.7518 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006789/1.585, allocations: 3.005 MB / 0.7547 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007939/1.593, allocations: 4.047 MB / 0.7587 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01461/1.608, allocations: 7.202 MB / 0.7657 GB, free: 13.36 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-05/1.608, allocations: 8 kB / 0.7657 GB, free: 13.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=541) (initialization): time 0.02668/1.634, allocations: 9.913 MB / 0.7754 GB, free: 3.543 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009613/1.635, allocations: 0.952 MB / 0.7764 GB, free: 2.219 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.116e-05/1.635, allocations: 28 kB / 0.7764 GB, free: 2.191 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01129/1.647, allocations: 2.784 MB / 0.7791 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005303/1.652, allocations: 0.9389 MB / 0.78 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/1.663, allocations: 6.739 MB / 0.7866 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006028/1.669, allocations: 0.5381 MB / 0.7871 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/1.67, allocations: 239.9 kB / 0.7873 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/1.67, allocations: 6.812 kB / 0.7874 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02799/1.698, allocations: 9.953 MB / 0.7971 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.545e-05/1.699, allocations: 34.22 kB / 0.7971 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009802/1.708, allocations: 2.573 MB / 0.7996 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005138/1.714, allocations: 0.9446 MB / 0.8005 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/1.724, allocations: 6.59 MB / 0.807 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005724/1.73, allocations: 0.5225 MB / 0.8075 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.731, allocations: 235.9 kB / 0.8077 GB, free: 2.113 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$PRE.NumberOfPeople.nextTimeEvent,$whenCondition1,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.nextTimeEventScaled,$PRE.NumberOfPeople.nextTimeEventScaled,NumberOfPeople.nextTimeEvent,PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (500): * Single equations (assignments): 491 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,6), (2,6), (1,6), (2,6), (2,6), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.003681/1.735, allocations: 1.107 MB / 0.8088 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001114/1.736, allocations: 312.3 kB / 0.8091 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01897/1.755, allocations: 8.797 MB / 0.8177 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.722e-05/1.755, allocations: 40 kB / 0.8177 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/1.755, allocations: 7.938 kB / 0.8177 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01511/1.77, allocations: 6.899 MB / 0.8245 GB, free: 0.9102 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03136/1.802, allocations: 13.46 MB / 0.8376 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/1.802, allocations: 4 kB / 0.8376 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003958/1.806, allocations: 0.7009 MB / 0.8383 GB, free: 2.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1922/1.998, allocations: 3.142 MB / 0.8414 GB, free: 332.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001301/1.999, allocations: 179.8 kB / 0.8415 GB, free: 332.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008969/2.008, allocations: 6.375 MB / 0.8478 GB, free: 329.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/2.008, allocations: 3.531 kB / 0.8478 GB, free: 329.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02003/2.028, allocations: 11.11 MB / 0.8586 GB, free: 326.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/2.031, allocations: 1.068 MB / 0.8597 GB, free: 325.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006812/2.031, allocations: 131.9 kB / 0.8598 GB, free: 325.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003451/2.035, allocations: 424.2 kB / 0.8602 GB, free: 325.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006196/2.035, allocations: 264.8 kB / 0.8604 GB, free: 325.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004412/2.036, allocations: 185.2 kB / 0.8606 GB, free: 325.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002081/2.038, allocations: 1.539 MB / 0.8621 GB, free: 325.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/2.038, allocations: 2.812 kB / 0.8621 GB, free: 325.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009142/2.047, allocations: 2.991 MB / 0.865 GB, free: 324.8 MB / 0.6075 GB 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,6), (2,6), (1,7), (2,6), (2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006731/2.054, allocations: 2.241 MB / 0.8672 GB, free: 324.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02207/2.076, allocations: 11.5 MB / 0.8785 GB, free: 319.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.957e-05/2.076, allocations: 4.531 kB / 0.8785 GB, free: 319.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007174/2.083, allocations: 3.568 MB / 0.882 GB, free: 316.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008531/2.092, allocations: 1.517 MB / 0.8834 GB, free: 314.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/2.11, allocations: 11.97 MB / 0.8951 GB, free: 303 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/2.112, allocations: 2.411 MB / 0.8975 GB, free: 300.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.007645/2.12, allocations: 2.592 MB / 0.9 GB, free: 298 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/2.121, allocations: 351.3 kB / 0.9003 GB, free: 297.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.102e-06/2.121, allocations: 0 / 0.9003 GB, free: 297.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.1519/2.273, allocations: 118.3 MB / 1.016 GB, free: 179.2 MB / 0.6075 GB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)