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.001185/0.001185, allocations: 99.39 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.001374/0.001374, allocations: 177.3 kB / 15.95 MB, free: 216 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.714/1.714, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004764/0.0004764, allocations: 12 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2652, allocations: 47.59 MB / 326.4 MB, free: 1.637 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.5075/0.7727, allocations: 206.7 MB / 0.5207 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03029/0.8031, allocations: 18.06 MB / 0.5383 GB, free: 9.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003184/0.8063, allocations: 72 kB / 0.5384 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003512/0.8098, allocations: 0.9423 MB / 0.5393 GB, free: 8.551 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02004/0.8299, allocations: 4.378 MB / 0.5436 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01473/0.8446, allocations: 4.353 MB / 0.5478 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009866/0.8545, allocations: 4.165 MB / 0.5519 GB, free: 12.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004017/0.8586, allocations: 1.812 MB / 0.5536 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01401/0.8726, allocations: 4.217 MB / 0.5578 GB, free: 7.051 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005269/0.8779, allocations: 2.186 MB / 0.5599 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00115/0.8791, allocations: 172 kB / 0.5601 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02084/0.8999, allocations: 8.221 MB / 0.5681 GB, free: 12.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003475/0.9034, allocations: 1.526 MB / 0.5696 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001939/0.9054, allocations: 0.7127 MB / 0.5703 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.9218, allocations: 6.749 MB / 0.5769 GB, free: 4.039 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.9218, allocations: 0 / 0.5769 GB, free: 4.039 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.9218, allocations: 4 kB / 0.5769 GB, free: 4.035 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002066/0.922, allocations: 0 / 0.5769 GB, free: 4.035 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.01431/0.9364, allocations: 4.622 MB / 0.5814 GB, free: 15.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.9364, allocations: 15.97 kB / 0.5814 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002027/0.9385, allocations: 407.5 kB / 0.5818 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00507/0.9435, allocations: 1.978 MB / 0.5837 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003243/0.9439, allocations: 352.2 kB / 0.5841 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000655/0.9445, allocations: 287.9 kB / 0.5843 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009353/0.9539, allocations: 5.379 MB / 0.5896 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.282e-05/0.954, allocations: 19.92 kB / 0.5896 GB, free: 6.742 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004299/0.9545, allocations: 120 kB / 0.5897 GB, free: 6.625 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005098/0.955, allocations: 409.8 kB / 0.5901 GB, free: 6.223 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/0.9652, allocations: 5.684 MB / 0.5957 GB, free: 0.5273 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.03694/1.002, allocations: 22.17 MB / 0.6173 GB, free: 8.812 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007066/1.009, allocations: 3.721 MB / 0.6209 GB, free: 5.082 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003037/1.012, allocations: 3.167 MB / 0.624 GB, free: 1.246 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2155/1.228, allocations: 2.683 MB / 0.6267 GB, free: 202.5 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001757/1.23, allocations: 281.1 kB / 0.6269 GB, free: 202.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=317): time 6.152e-06/1.23, allocations: 0.5938 kB / 0.6269 GB, free: 202.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=377): time 0.1114/1.341, allocations: 33.61 MB / 0.6597 GB, free: 183.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/1.341, allocations: 479.9 kB / 0.6602 GB, free: 182.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/1.344, allocations: 2.225 MB / 0.6624 GB, free: 180.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009566/1.345, allocations: 97.7 kB / 0.6625 GB, free: 180.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008788/1.346, allocations: 1.331 MB / 0.6638 GB, free: 178.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001126/1.347, allocations: 1.322 MB / 0.6651 GB, free: 177.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002601/1.347, allocations: 88 kB / 0.6651 GB, free: 177.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/1.347, allocations: 479.1 kB / 0.6656 GB, free: 176.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004568/1.352, allocations: 2.955 MB / 0.6685 GB, free: 174 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005157/1.357, allocations: 3.983 MB / 0.6724 GB, free: 169.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005201/1.362, allocations: 3.492 MB / 0.6758 GB, free: 166.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/1.362, allocations: 8 kB / 0.6758 GB, free: 166 MB / 478.1 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.01924/1.382, allocations: 9.766 MB / 0.6853 GB, free: 156.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001931/1.384, allocations: 10.81 MB / 0.6959 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.154e-05/1.384, allocations: 28 kB / 0.6959 GB, free: 144.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009564/1.393, allocations: 2.768 MB / 0.6986 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/1.397, allocations: 0.9399 MB / 0.6995 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008226/1.406, allocations: 6.744 MB / 0.7061 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004804/1.41, allocations: 0.5342 MB / 0.7067 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005953/1.411, allocations: 243.9 kB / 0.7069 GB, free: 133.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/1.411, allocations: 4 kB / 0.7069 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01571/1.427, allocations: 8.722 MB / 0.7154 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.398e-05/1.427, allocations: 28 kB / 0.7154 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008633/1.436, allocations: 2.58 MB / 0.718 GB, free: 121.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004482/1.44, allocations: 0.9361 MB / 0.7189 GB, free: 120.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007937/1.448, allocations: 6.577 MB / 0.7253 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00468/1.453, allocations: 0.5225 MB / 0.7258 GB, free: 113.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00063/1.453, allocations: 241.4 kB / 0.726 GB, free: 113.4 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.002092/1.456, allocations: 1.105 MB / 0.7271 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006575/1.456, allocations: 316.2 kB / 0.7274 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01428/1.47, allocations: 8.808 MB / 0.736 GB, free: 103.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.222e-05/1.471, allocations: 40 kB / 0.7361 GB, free: 103 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/1.471, allocations: 0 / 0.7361 GB, free: 103 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01099/1.482, allocations: 6.887 MB / 0.7428 GB, free: 96.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02338/1.505, allocations: 13.49 MB / 0.756 GB, free: 82.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.505, allocations: 12.16 kB / 0.756 GB, free: 82.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003249/1.508, allocations: 0.7021 MB / 0.7567 GB, free: 81.83 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01175/1.52, allocations: 3.148 MB / 0.7597 GB, free: 78.67 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000962/1.521, allocations: 179.8 kB / 0.7599 GB, free: 78.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007351/1.528, allocations: 6.357 MB / 0.7661 GB, free: 71.99 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.528, allocations: 0 / 0.7661 GB, free: 71.99 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01865/1.547, allocations: 11.18 MB / 0.777 GB, free: 60.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002891/1.55, allocations: 1.09 MB / 0.7781 GB, free: 59.58 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009028/1.551, allocations: 135.9 kB / 0.7782 GB, free: 59.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00341/1.554, allocations: 419.2 kB / 0.7786 GB, free: 59.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004748/1.555, allocations: 266.8 kB / 0.7789 GB, free: 58.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003708/1.555, allocations: 183.9 kB / 0.779 GB, free: 58.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001767/1.557, allocations: 1.507 MB / 0.7805 GB, free: 57.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.557, allocations: 0 / 0.7805 GB, free: 57.07 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008881/1.566, allocations: 2.973 MB / 0.7834 GB, free: 54.31 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.00568/1.572, allocations: 2.201 MB / 0.7856 GB, free: 52.44 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02011/1.592, allocations: 11.44 MB / 0.7967 GB, free: 40.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/1.592, allocations: 4.656 kB / 0.7967 GB, free: 40.92 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006223/1.598, allocations: 3.56 MB / 0.8002 GB, free: 37.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006535/1.605, allocations: 1.409 MB / 0.8016 GB, free: 35.95 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.622, allocations: 11.6 MB / 0.8129 GB, free: 24.28 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001691/1.624, allocations: 2.477 MB / 0.8154 GB, free: 21.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007428/1.631, allocations: 2.575 MB / 0.8179 GB, free: 19.19 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001142/1.632, allocations: 351.3 kB / 0.8182 GB, free: 18.84 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/1.632, allocations: 0 / 0.8182 GB, free: 18.84 MB / 478.1 MB Notification: Performance of Templates: time 0.2904/1.923, allocations: 114.5 MB / 0.93 GB, free: 114.1 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: