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.001277/0.001277, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001461/0.001461, allocations: 194.5 kB / 16.14 MB, free: 6.668 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.521/1.521, allocations: 205.1 MB / 222 MB, free: 4.719 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.00115/0.00115, allocations: 55.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2663, allocations: 46.62 MB / 324.7 MB, free: 1.914 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4384/0.7048, allocations: 212.7 MB / 0.5247 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01686/0.7217, allocations: 13.73 MB / 0.5381 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001548/0.7232, allocations: 27.75 kB / 0.5382 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.7246, allocations: 407.8 kB / 0.5385 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.7348, allocations: 3.174 MB / 0.5416 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007273/0.7421, allocations: 2.454 MB / 0.544 GB, free: 8.57 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004163/0.7462, allocations: 3.791 MB / 0.5477 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.7475, allocations: 0.6462 MB / 0.5484 GB, free: 4.23 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007452/0.7549, allocations: 2.803 MB / 0.5511 GB, free: 1.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002265/0.7572, allocations: 1.092 MB / 0.5522 GB, free: 0.668 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.7575, allocations: 64 kB / 0.5522 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01353/0.771, allocations: 6.872 MB / 0.559 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.7722, allocations: 489.9 kB / 0.5594 GB, free: 9.621 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.7732, allocations: 0.5875 MB / 0.56 GB, free: 9.039 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.7866, allocations: 4.994 MB / 0.5649 GB, free: 4.332 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.7866, allocations: 0 / 0.5649 GB, free: 4.332 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7866, allocations: 0 / 0.5649 GB, free: 4.332 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.7867, allocations: 3.938 kB / 0.5649 GB, free: 4.328 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.005085/0.7917, allocations: 2.134 MB / 0.567 GB, free: 2.145 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.7918, allocations: 12.03 kB / 0.567 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004862/0.7923, allocations: 126.8 kB / 0.5671 GB, free: 2.008 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.7934, allocations: 0.6916 MB / 0.5678 GB, free: 1.285 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.7936, allocations: 131.4 kB / 0.5679 GB, free: 1.145 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.7937, allocations: 87.12 kB / 0.568 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.796, allocations: 1.47 MB / 0.5694 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.796, allocations: 7.938 kB / 0.5694 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.7961, allocations: 34.11 kB / 0.5694 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.991e-05/0.7962, allocations: 73.95 kB / 0.5695 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002218/0.7984, allocations: 1.471 MB / 0.571 GB, free: 13.96 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.008428/0.8069, allocations: 6.343 MB / 0.5772 GB, free: 7.246 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.8087, allocations: 0.9799 MB / 0.5781 GB, free: 6.258 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007457/0.8094, allocations: 0.523 MB / 0.5786 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001593/0.8111, allocations: 2.06 MB / 0.5806 GB, free: 3.254 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.8111, allocations: 47.5 kB / 0.5807 GB, free: 3.199 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004769/0.8116, allocations: 105.1 kB / 0.5808 GB, free: 3.098 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 2.936e-06/0.8116, allocations: 0 / 0.5808 GB, free: 3.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01644/0.828, allocations: 4.805 MB / 0.5855 GB, free: 14.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.8281, allocations: 115.8 kB / 0.5856 GB, free: 14.11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009759/0.8291, allocations: 0.7776 MB / 0.5863 GB, free: 13.33 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.8292, allocations: 49.7 kB / 0.5864 GB, free: 13.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.8296, allocations: 452.6 kB / 0.5868 GB, free: 12.83 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002688/0.8298, allocations: 342.8 kB / 0.5871 GB, free: 12.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003917/0.8302, allocations: 254.7 kB / 0.5874 GB, free: 12.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.8304, allocations: 406.7 kB / 0.5878 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.8316, allocations: 0.6189 MB / 0.5884 GB, free: 11.21 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.833, allocations: 0.9615 MB / 0.5893 GB, free: 10.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/0.8357, allocations: 1.658 MB / 0.5909 GB, free: 8.289 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.8357, allocations: 4 kB / 0.5909 GB, free: 8.285 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003909/0.8396, allocations: 1.944 MB / 0.5928 GB, free: 6.324 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.279e-05/0.8397, allocations: 71.39 kB / 0.5929 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.8397, allocations: 11.94 kB / 0.5929 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.8412, allocations: 309.2 kB / 0.5932 GB, free: 5.926 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.8423, allocations: 279.5 kB / 0.5935 GB, free: 5.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.8438, allocations: 0.9022 MB / 0.5944 GB, free: 4.727 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.8449, allocations: 103.9 kB / 0.5945 GB, free: 4.625 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.8451, allocations: 75.97 kB / 0.5945 GB, free: 4.551 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001513/0.8466, allocations: 0.8615 MB / 0.5954 GB, free: 3.684 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00137/0.848, allocations: 0.9459 MB / 0.5963 GB, free: 2.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002551/0.8505, allocations: 1.642 MB / 0.5979 GB, free: 0.793 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.41e-06/0.8506, allocations: 0 / 0.5979 GB, free: 0.793 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003768/0.8543, allocations: 1.906 MB / 0.5998 GB, free: 14.86 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.601e-05/0.8544, allocations: 70.95 kB / 0.5998 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.8544, allocations: 19.92 kB / 0.5999 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.8558, allocations: 308.6 kB / 0.6001 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.8569, allocations: 271.5 kB / 0.6004 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.8583, allocations: 0.918 MB / 0.6013 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.8596, allocations: 103.8 kB / 0.6014 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/0.8597, allocations: 71.97 kB / 0.6015 GB, free: 13.08 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.0005483/0.8603, allocations: 263.9 kB / 0.6017 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002528/0.8606, allocations: 106.8 kB / 0.6018 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003915/0.8645, allocations: 1.913 MB / 0.6037 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.8645, allocations: 11.98 kB / 0.6037 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.8645, allocations: 0 / 0.6037 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.8645, allocations: 3.984 kB / 0.6037 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005121/0.8697, allocations: 3.034 MB / 0.6067 GB, free: 7.664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.8697, allocations: 4 kB / 0.6067 GB, free: 7.66 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008186/0.8705, allocations: 183.7 kB / 0.6068 GB, free: 7.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/0.8722, allocations: 384.5 kB / 0.6072 GB, free: 7.102 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.784e-05/0.8723, allocations: 35.98 kB / 0.6072 GB, free: 7.066 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.8737, allocations: 0.8763 MB / 0.6081 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.8737, allocations: 0 / 0.6081 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004395/0.8781, allocations: 2.416 MB / 0.6105 GB, free: 3.711 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005899/0.8787, allocations: 323.8 kB / 0.6108 GB, free: 3.375 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.8789, allocations: 28 kB / 0.6108 GB, free: 3.348 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009568/0.8799, allocations: 79.86 kB / 0.6109 GB, free: 3.27 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.8801, allocations: 76.83 kB / 0.6109 GB, free: 3.195 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.8802, allocations: 59.97 kB / 0.611 GB, free: 3.137 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007111/0.8809, allocations: 0.577 MB / 0.6116 GB, free: 2.566 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8809, allocations: 0 / 0.6116 GB, free: 2.566 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003014/0.884, allocations: 1.163 MB / 0.6127 GB, free: 1.402 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.002867/0.8868, allocations: 1.15 MB / 0.6138 GB, free: 324 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00572/0.8926, allocations: 2.632 MB / 0.6164 GB, free: 13.65 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.8926, allocations: 448 / 0.6164 GB, free: 13.65 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.8942, allocations: 0.7376 MB / 0.6171 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.8969, allocations: 0.5381 MB / 0.6176 GB, free: 12.38 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005315/0.9022, allocations: 2.882 MB / 0.6205 GB, free: 9.449 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007194/0.903, allocations: 1.123 MB / 0.6216 GB, free: 8.297 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002079/0.9051, allocations: 0.6174 MB / 0.6222 GB, free: 7.676 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003851/0.9055, allocations: 123.4 kB / 0.6223 GB, free: 7.555 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9055, allocations: 0 / 0.6223 GB, free: 7.555 MB / 494.1 MB Notification: Performance of Templates: time 0.202/1.107, allocations: 40.56 MB / 0.6619 GB, free: 202.6 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)