Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.001721/0.001721, allocations: 192.2 kB / 16.25 MB, free: 6.617 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.45/1.45, allocations: 205.1 MB / 222.1 MB, free: 4.738 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.001323/0.001323, allocations: 43.94 kB / 278.2 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2438, allocations: 46.62 MB / 324.8 MB, free: 1.957 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3998/0.6436, allocations: 210.9 MB / 0.5232 GB, free: 5.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.6596, allocations: 13.28 MB / 0.5362 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001614/0.6613, allocations: 23.81 kB / 0.5362 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002208/0.6636, allocations: 420.3 kB / 0.5366 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.6759, allocations: 3.33 MB / 0.5398 GB, free: 12.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007166/0.6831, allocations: 2.614 MB / 0.5424 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.6864, allocations: 2.637 MB / 0.545 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.6875, allocations: 0.7775 MB / 0.5457 GB, free: 7.062 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006985/0.6945, allocations: 3.001 MB / 0.5486 GB, free: 4.336 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.6964, allocations: 1.137 MB / 0.5498 GB, free: 3.277 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00024/0.6966, allocations: 120 kB / 0.5499 GB, free: 3.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01242/0.709, allocations: 6.715 MB / 0.5564 GB, free: 12.8 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009149/0.71, allocations: 0.5411 MB / 0.557 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009209/0.7109, allocations: 0.6422 MB / 0.5576 GB, free: 11.63 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01512/0.7261, allocations: 5.043 MB / 0.5625 GB, free: 6.879 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.7261, allocations: 3.984 kB / 0.5625 GB, free: 6.875 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.7261, allocations: 0 / 0.5625 GB, free: 6.875 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.7261, allocations: 3.938 kB / 0.5625 GB, free: 6.871 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.005368/0.7315, allocations: 2.136 MB / 0.5646 GB, free: 4.684 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.7316, allocations: 8.031 kB / 0.5646 GB, free: 4.676 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004982/0.7321, allocations: 126.8 kB / 0.5647 GB, free: 4.551 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.7332, allocations: 0.6896 MB / 0.5654 GB, free: 3.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.7333, allocations: 132.5 kB / 0.5655 GB, free: 3.691 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.7335, allocations: 82.11 kB / 0.5656 GB, free: 3.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.7357, allocations: 1.47 MB / 0.567 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.7357, allocations: 0 / 0.567 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.7359, allocations: 42.25 kB / 0.5671 GB, free: 2.051 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.79e-05/0.736, allocations: 73.91 kB / 0.5672 GB, free: 1.977 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/0.7381, allocations: 1.468 MB / 0.5686 GB, free: 0.5117 MB / 430.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.008118/0.7462, allocations: 6.353 MB / 0.5748 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.748, allocations: 0.9721 MB / 0.5757 GB, free: 8.809 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007168/0.7487, allocations: 0.5269 MB / 0.5763 GB, free: 8.281 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001625/0.7504, allocations: 2.057 MB / 0.5783 GB, free: 5.805 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.7504, allocations: 43.56 kB / 0.5783 GB, free: 5.754 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004731/0.7509, allocations: 102.9 kB / 0.5784 GB, free: 5.652 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 2.625e-06/0.7509, allocations: 4 kB / 0.5784 GB, free: 5.648 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01631/0.7672, allocations: 4.807 MB / 0.5831 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.7674, allocations: 115.8 kB / 0.5832 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.7684, allocations: 0.7785 MB / 0.584 GB, free: 15.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.7686, allocations: 45.7 kB / 0.584 GB, free: 15.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002971/0.7689, allocations: 444.4 kB / 0.5844 GB, free: 15.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/0.7691, allocations: 342.7 kB / 0.5848 GB, free: 15.06 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004184/0.7696, allocations: 262.7 kB / 0.585 GB, free: 14.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.7698, allocations: 402.7 kB / 0.5854 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.7709, allocations: 0.6111 MB / 0.586 GB, free: 13.78 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.7724, allocations: 0.9615 MB / 0.5869 GB, free: 12.67 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.775, allocations: 1.662 MB / 0.5886 GB, free: 10.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.775, allocations: 0 / 0.5886 GB, free: 10.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003762/0.7788, allocations: 1.947 MB / 0.5905 GB, free: 8.887 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.2e-05/0.7789, allocations: 64.03 kB / 0.5905 GB, free: 8.812 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.7789, allocations: 15.94 kB / 0.5905 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.7804, allocations: 312.9 kB / 0.5908 GB, free: 8.488 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.7815, allocations: 271.5 kB / 0.5911 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.7831, allocations: 0.9067 MB / 0.592 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.7843, allocations: 103.8 kB / 0.5921 GB, free: 7.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001739/0.7845, allocations: 83.91 kB / 0.5922 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001531/0.786, allocations: 0.8498 MB / 0.593 GB, free: 6.254 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001397/0.7875, allocations: 0.9498 MB / 0.5939 GB, free: 5.156 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002563/0.79, allocations: 1.627 MB / 0.5955 GB, free: 3.375 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.843e-06/0.7901, allocations: 4 kB / 0.5955 GB, free: 3.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003775/0.7938, allocations: 1.914 MB / 0.5974 GB, free: 1.434 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.979e-05/0.7939, allocations: 67.39 kB / 0.5974 GB, free: 1.355 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.7939, allocations: 8 kB / 0.5974 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.7953, allocations: 309.2 kB / 0.5977 GB, free: 1.043 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.7964, allocations: 283.5 kB / 0.598 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.798, allocations: 0.9142 MB / 0.5989 GB, free: 15.83 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.7992, allocations: 103.9 kB / 0.599 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.7993, allocations: 71.98 kB / 0.5991 GB, free: 15.66 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004788/0.7998, allocations: 259.9 kB / 0.5993 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/0.8, allocations: 102.8 kB / 0.5994 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003917/0.804, allocations: 1.913 MB / 0.6013 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.804, allocations: 15.98 kB / 0.6013 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.804, allocations: 0 / 0.6013 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.804, allocations: 7.922 kB / 0.6013 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005536/0.8096, allocations: 3.03 MB / 0.6043 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.8096, allocations: 4 kB / 0.6043 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008173/0.8104, allocations: 179.8 kB / 0.6044 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/0.8121, allocations: 388.4 kB / 0.6048 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-05/0.8122, allocations: 31.98 kB / 0.6048 GB, free: 9.648 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.8136, allocations: 0.8754 MB / 0.6057 GB, free: 8.75 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.8136, allocations: 4.031 kB / 0.6057 GB, free: 8.746 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004604/0.8183, allocations: 2.414 MB / 0.6081 GB, free: 6.293 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006594/0.8189, allocations: 327.7 kB / 0.6084 GB, free: 5.953 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.8191, allocations: 24 kB / 0.6084 GB, free: 5.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009624/0.8201, allocations: 79.92 kB / 0.6085 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.8203, allocations: 76.83 kB / 0.6085 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.8204, allocations: 59.97 kB / 0.6086 GB, free: 5.719 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007486/0.8212, allocations: 0.577 MB / 0.6092 GB, free: 5.148 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8212, allocations: 0 / 0.6092 GB, free: 5.148 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003569/0.8248, allocations: 1.167 MB / 0.6103 GB, free: 3.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002976/0.8278, allocations: 1.153 MB / 0.6114 GB, free: 2.895 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005916/0.8337, allocations: 2.956 MB / 0.6143 GB, free: 15.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.8337, allocations: 448 / 0.6143 GB, free: 15.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.8351, allocations: 0.74 MB / 0.615 GB, free: 15.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/0.8378, allocations: 0.5576 MB / 0.6156 GB, free: 14.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.8431, allocations: 2.906 MB / 0.6184 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006546/0.8438, allocations: 1.119 MB / 0.6195 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002136/0.8459, allocations: 0.6135 MB / 0.6201 GB, free: 9.887 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000383/0.8463, allocations: 119.4 kB / 0.6202 GB, free: 9.77 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/0.8463, allocations: 0 / 0.6202 GB, free: 9.77 MB / 494.1 MB Notification: Performance of Templates: time 0.2159/1.062, allocations: 41.54 MB / 0.6608 GB, free: 204 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)