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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000936/0.0009363, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008825/0.0008828, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.4 MB / 222.1 MB, free: 5.508 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.0004743/0.0004745, allocations: 12 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2642, allocations: 47.59 MB / 326.4 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.478/0.7423, allocations: 206.7 MB / 0.5207 GB, free: 14.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02616/0.7686, allocations: 18.05 MB / 0.5383 GB, free: 9.066 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.7719, allocations: 75.72 kB / 0.5384 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003125/0.775, allocations: 0.9453 MB / 0.5393 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01628/0.7913, allocations: 4.378 MB / 0.5436 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01336/0.8047, allocations: 4.354 MB / 0.5478 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007795/0.8125, allocations: 4.165 MB / 0.5519 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003918/0.8165, allocations: 1.82 MB / 0.5537 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01217/0.8287, allocations: 4.217 MB / 0.5578 GB, free: 6.824 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005167/0.8339, allocations: 2.186 MB / 0.5599 GB, free: 4.875 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001634/0.8356, allocations: 172 kB / 0.5601 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01861/0.8542, allocations: 8.209 MB / 0.5681 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003319/0.8575, allocations: 1.541 MB / 0.5696 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00241/0.86, allocations: 0.7087 MB / 0.5703 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01416/0.8742, allocations: 6.757 MB / 0.5769 GB, free: 3.805 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.8742, allocations: 4 kB / 0.5769 GB, free: 3.801 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.8742, allocations: 0 / 0.5769 GB, free: 3.801 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002177/0.8744, allocations: 0 / 0.5769 GB, free: 3.801 MB / 430.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.01507/0.8895, allocations: 4.61 MB / 0.5814 GB, free: 15.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.8896, allocations: 8.031 kB / 0.5814 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002425/0.892, allocations: 415.5 kB / 0.5818 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005994/0.898, allocations: 1.983 MB / 0.5837 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005052/0.8986, allocations: 352.2 kB / 0.5841 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.9, allocations: 287.9 kB / 0.5843 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.9118, allocations: 5.383 MB / 0.5896 GB, free: 6.516 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001388/0.9119, allocations: 11.92 kB / 0.5896 GB, free: 6.504 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008743/0.9128, allocations: 124 kB / 0.5897 GB, free: 6.383 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004998/0.9133, allocations: 405.8 kB / 0.5901 GB, free: 5.984 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.9253, allocations: 5.691 MB / 0.5957 GB, free: 288 kB / 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.03913/0.9644, allocations: 22.16 MB / 0.6173 GB, free: 8.578 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007131/0.9716, allocations: 3.729 MB / 0.621 GB, free: 4.84 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002707/0.9743, allocations: 3.163 MB / 0.624 GB, free: 1.008 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2132/1.188, allocations: 2.683 MB / 0.6267 GB, free: 202.5 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002598/1.19, allocations: 286.5 kB / 0.6269 GB, free: 202.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=317): time 1.846e-05/1.19, allocations: 3.156 kB / 0.6269 GB, free: 202.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=377): time 0.2064/1.397, allocations: 33.6 MB / 0.6598 GB, free: 182.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/1.397, allocations: 479.9 kB / 0.6602 GB, free: 182.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004692/1.402, allocations: 2.228 MB / 0.6624 GB, free: 179.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001208/1.403, allocations: 97.7 kB / 0.6625 GB, free: 179.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/1.404, allocations: 1.331 MB / 0.6638 GB, free: 178.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002021/1.406, allocations: 1.319 MB / 0.6651 GB, free: 177.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000871/1.407, allocations: 88 kB / 0.6652 GB, free: 177.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003396/1.407, allocations: 483.1 kB / 0.6656 GB, free: 176.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008898/1.416, allocations: 2.955 MB / 0.6685 GB, free: 173.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00979/1.426, allocations: 3.987 MB / 0.6724 GB, free: 169.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009664/1.436, allocations: 3.488 MB / 0.6758 GB, free: 165.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.519e-05/1.436, allocations: 8 kB / 0.6758 GB, free: 165.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.03561/1.472, allocations: 9.762 MB / 0.6853 GB, free: 155.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002106/1.474, allocations: 10.82 MB / 0.6959 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.69e-05/1.474, allocations: 24 kB / 0.6959 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0167/1.491, allocations: 2.78 MB / 0.6986 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007376/1.498, allocations: 0.9361 MB / 0.6996 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01497/1.513, allocations: 6.74 MB / 0.7061 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007695/1.521, allocations: 0.542 MB / 0.7067 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009453/1.522, allocations: 243.8 kB / 0.7069 GB, free: 132.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/1.522, allocations: 4 kB / 0.7069 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01727/1.539, allocations: 8.721 MB / 0.7154 GB, free: 124 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-05/1.539, allocations: 24 kB / 0.7154 GB, free: 124 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00819/1.547, allocations: 2.581 MB / 0.718 GB, free: 121.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004071/1.551, allocations: 0.9361 MB / 0.7189 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007558/1.559, allocations: 6.58 MB / 0.7253 GB, free: 113.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004289/1.563, allocations: 0.5186 MB / 0.7258 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004669/1.564, allocations: 243.9 kB / 0.726 GB, free: 113 MB / 478.1 MB 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.001866/1.566, allocations: 1.117 MB / 0.7271 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005382/1.566, allocations: 312.2 kB / 0.7274 GB, free: 111.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0136/1.58, allocations: 8.804 MB / 0.736 GB, free: 102.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.079e-05/1.58, allocations: 40 kB / 0.7361 GB, free: 102.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/1.58, allocations: 0 / 0.7361 GB, free: 102.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01032/1.59, allocations: 6.891 MB / 0.7428 GB, free: 95.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02144/1.612, allocations: 13.5 MB / 0.756 GB, free: 82.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/1.612, allocations: 0 / 0.756 GB, free: 82.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002899/1.615, allocations: 0.7062 MB / 0.7567 GB, free: 81.47 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01096/1.626, allocations: 3.149 MB / 0.7597 GB, free: 78.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006756/1.626, allocations: 175.8 kB / 0.7599 GB, free: 78.13 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007306/1.634, allocations: 6.361 MB / 0.7661 GB, free: 71.62 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.634, allocations: 0 / 0.7661 GB, free: 71.62 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/1.651, allocations: 11.17 MB / 0.777 GB, free: 60.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002821/1.653, allocations: 1.094 MB / 0.7781 GB, free: 59.22 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006788/1.654, allocations: 139.9 kB / 0.7782 GB, free: 59.08 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003081/1.657, allocations: 427.2 kB / 0.7786 GB, free: 58.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004374/1.658, allocations: 262.8 kB / 0.7789 GB, free: 58.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/1.658, allocations: 183.9 kB / 0.7791 GB, free: 58.23 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001711/1.66, allocations: 1.504 MB / 0.7805 GB, free: 56.71 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.66, allocations: 3.938 kB / 0.7805 GB, free: 56.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007302/1.667, allocations: 2.977 MB / 0.7834 GB, free: 53.93 MB / 478.1 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) * 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.00493/1.672, allocations: 2.191 MB / 0.7856 GB, free: 52.07 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01885/1.691, allocations: 11.44 MB / 0.7968 GB, free: 40.56 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/1.691, allocations: 4.656 kB / 0.7968 GB, free: 40.56 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006084/1.697, allocations: 3.563 MB / 0.8002 GB, free: 37 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006222/1.703, allocations: 1.413 MB / 0.8016 GB, free: 35.57 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01648/1.72, allocations: 11.6 MB / 0.8129 GB, free: 23.92 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/1.721, allocations: 2.477 MB / 0.8154 GB, free: 21.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007165/1.729, allocations: 2.571 MB / 0.8179 GB, free: 18.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/1.73, allocations: 355.3 kB / 0.8182 GB, free: 18.48 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/1.73, allocations: 0 / 0.8182 GB, free: 18.48 MB / 478.1 MB Notification: Performance of Templates: time 0.3065/2.036, allocations: 114.5 MB / 0.93 GB, free: 114.2 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: