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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008803/0.0008803, allocations: 95.58 kB / 16.3 MB, free: 5.566 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.0008978/0.0008979, allocations: 180.1 kB / 17.2 MB, free: 5.5 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.724/1.724, allocations: 205.4 MB / 223.3 MB, free: 13.16 MB / 190.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.0004792/0.0004797, allocations: 16 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1126, allocations: 47.58 MB / 327.7 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.4923/0.6049, allocations: 206.7 MB / 0.5219 GB, free: 9.793 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2928/0.8977, allocations: 18.03 MB / 0.5395 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003065/0.9009, allocations: 74.72 kB / 0.5395 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.9044, allocations: 0.9403 MB / 0.5405 GB, free: 3.723 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01576/0.9202, allocations: 4.382 MB / 0.5447 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01458/0.9348, allocations: 4.359 MB / 0.549 GB, free: 3.578 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00885/0.9437, allocations: 4.156 MB / 0.5531 GB, free: 3.566 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004038/0.9477, allocations: 1.821 MB / 0.5548 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01097/0.9587, allocations: 4.213 MB / 0.5589 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005487/0.9642, allocations: 2.192 MB / 0.5611 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.9653, allocations: 169.8 kB / 0.5612 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01943/0.9848, allocations: 8.224 MB / 0.5693 GB, free: 1.902 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003651/0.9885, allocations: 1.531 MB / 0.5708 GB, free: 1.461 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002701/0.9912, allocations: 0.7111 MB / 0.5715 GB, free: 17.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01596/1.007, allocations: 6.759 MB / 0.5781 GB, free: 14.35 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/1.007, allocations: 0 / 0.5781 GB, free: 14.35 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.605e-06/1.007, allocations: 0 / 0.5781 GB, free: 14.35 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001766/1.007, allocations: 0 / 0.5781 GB, free: 14.35 MB / 446.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.01611/1.024, allocations: 4.621 MB / 0.5826 GB, free: 11.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.716e-05/1.024, allocations: 8.969 kB / 0.5826 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003638/1.027, allocations: 415.3 kB / 0.583 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007115/1.034, allocations: 1.972 MB / 0.5849 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005882/1.035, allocations: 348.3 kB / 0.5852 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00192/1.037, allocations: 296.1 kB / 0.5855 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/1.052, allocations: 5.382 MB / 0.5908 GB, free: 7.668 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002543/1.053, allocations: 12.56 kB / 0.5908 GB, free: 7.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001774/1.054, allocations: 122 kB / 0.5909 GB, free: 7.629 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000696/1.055, allocations: 411.4 kB / 0.5913 GB, free: 7.277 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01411/1.069, allocations: 5.691 MB / 0.5969 GB, free: 3.355 MB / 446.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.04729/1.117, allocations: 22.16 MB / 0.6185 GB, free: 15.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00851/1.125, allocations: 3.724 MB / 0.6221 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003308/1.128, allocations: 3.167 MB / 0.6252 GB, free: 9.645 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006212/1.135, allocations: 2.689 MB / 0.6279 GB, free: 7.637 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002219/1.137, allocations: 280.5 kB / 0.6281 GB, free: 7.406 MB / 478.1 MB Notification: Performance of pre-optimization done (n=317): time 1.725e-05/1.137, allocations: 8 kB / 0.6281 GB, free: 7.398 MB / 478.1 MB Notification: Performance of matching and sorting (n=377): time 0.1349/1.272, allocations: 33.61 MB / 0.661 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004674/1.272, allocations: 487.2 kB / 0.6614 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005782/1.278, allocations: 2.226 MB / 0.6636 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001681/1.28, allocations: 97.39 kB / 0.6637 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001515/1.281, allocations: 1.328 MB / 0.665 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00237/1.284, allocations: 1.319 MB / 0.6663 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/1.285, allocations: 91.44 kB / 0.6664 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0004292/1.285, allocations: 479 kB / 0.6668 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006839/1.292, allocations: 2.956 MB / 0.6697 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008043/1.3, allocations: 3.98 MB / 0.6736 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007175/1.308, allocations: 3.497 MB / 0.677 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.164e-05/1.308, allocations: 8.875 kB / 0.677 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of matching and sorting (n=541) (initialization): time 0.02505/1.333, allocations: 9.756 MB / 0.6865 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.004967/1.338, allocations: 10.82 MB / 0.6971 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.513e-05/1.338, allocations: 31.95 kB / 0.6971 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01101/1.349, allocations: 2.779 MB / 0.6998 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005189/1.354, allocations: 0.9346 MB / 0.7008 GB, free: 8.223 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/1.365, allocations: 6.735 MB / 0.7073 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006109/1.371, allocations: 0.5339 MB / 0.7079 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001518/1.373, allocations: 249.3 kB / 0.7081 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/1.373, allocations: 4 kB / 0.7081 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02351/1.396, allocations: 8.716 MB / 0.7166 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/1.397, allocations: 28 kB / 0.7166 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009647/1.406, allocations: 2.584 MB / 0.7192 GB, free: 9.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004921/1.411, allocations: 0.9402 MB / 0.7201 GB, free: 8.238 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.421, allocations: 6.578 MB / 0.7265 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005124/1.426, allocations: 0.5296 MB / 0.727 GB, free: 1.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.428, allocations: 237.6 kB / 0.7272 GB, free: 1.75 MB / 0.545 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,$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,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 (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.003604/1.431, allocations: 1.107 MB / 0.7283 GB, free: 1.027 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.432, allocations: 314.7 kB / 0.7286 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1875/1.62, allocations: 8.795 MB / 0.7372 GB, free: 271 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.156e-05/1.62, allocations: 40.73 kB / 0.7373 GB, free: 271 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.45e-05/1.62, allocations: 5.547 kB / 0.7373 GB, free: 271 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01354/1.634, allocations: 6.882 MB / 0.744 GB, free: 268.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0266/1.66, allocations: 13.5 MB / 0.7572 GB, free: 263.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.308e-05/1.66, allocations: 7.5 kB / 0.7572 GB, free: 263.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003506/1.664, allocations: 0.7058 MB / 0.7579 GB, free: 263.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01187/1.676, allocations: 3.159 MB / 0.7609 GB, free: 262.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001058/1.677, allocations: 186 kB / 0.7611 GB, free: 262 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007914/1.685, allocations: 6.358 MB / 0.7673 GB, free: 256.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.685, allocations: 4.031 kB / 0.7673 GB, free: 256.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02059/1.705, allocations: 11.16 MB / 0.7782 GB, free: 245.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003257/1.709, allocations: 1.089 MB / 0.7793 GB, free: 244.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.71, allocations: 135 kB / 0.7794 GB, free: 244.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004068/1.714, allocations: 439.2 kB / 0.7798 GB, free: 244 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007521/1.715, allocations: 266.8 kB / 0.7801 GB, free: 243.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006729/1.716, allocations: 190.9 kB / 0.7803 GB, free: 243.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002253/1.718, allocations: 1.5 MB / 0.7817 GB, free: 242 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/1.718, allocations: 0 / 0.7817 GB, free: 242 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009701/1.728, allocations: 2.977 MB / 0.7846 GB, free: 239.3 MB / 0.545 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 (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.00689/1.735, allocations: 2.185 MB / 0.7868 GB, free: 237.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02284/1.757, allocations: 11.44 MB / 0.798 GB, free: 226.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/1.757, allocations: 0.6562 kB / 0.798 GB, free: 226.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006864/1.764, allocations: 3.564 MB / 0.8014 GB, free: 222.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007249/1.772, allocations: 1.407 MB / 0.8028 GB, free: 221.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01961/1.791, allocations: 11.6 MB / 0.8141 GB, free: 209.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002278/1.794, allocations: 2.483 MB / 0.8166 GB, free: 207 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009043/1.803, allocations: 2.563 MB / 0.8191 GB, free: 204.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/1.805, allocations: 355.3 kB / 0.8194 GB, free: 204.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.382e-06/1.805, allocations: 0 / 0.8194 GB, free: 204.1 MB / 0.545 GB Notification: Performance of Templates: time 0.1376/1.942, allocations: 114.5 MB / 0.9312 GB, free: 89.44 MB / 0.545 GB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: