Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001527/0.001527, allocations: 101.8 kB / 16.62 MB, free: 6.809 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.001689/0.001689, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.43/1.43, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001225/0.001225, allocations: 47.92 kB / 279.5 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09284/0.09408, allocations: 46.63 MB / 326.1 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4398/0.5339, allocations: 210.9 MB / 0.5244 GB, free: 4.395 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2505/0.7844, allocations: 13.27 MB / 0.5374 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/0.7859, allocations: 30.28 kB / 0.5374 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.7874, allocations: 416.2 kB / 0.5378 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.012/0.7994, allocations: 3.321 MB / 0.5411 GB, free: 0.543 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008542/0.8079, allocations: 2.62 MB / 0.5436 GB, free: 456 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003968/0.8119, allocations: 2.637 MB / 0.5462 GB, free: 448 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001276/0.8132, allocations: 0.7668 MB / 0.5469 GB, free: 384 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007289/0.8205, allocations: 3.006 MB / 0.5499 GB, free: 320 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002451/0.823, allocations: 1.13 MB / 0.551 GB, free: 320 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003171/0.8233, allocations: 119.7 kB / 0.5511 GB, free: 320 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01368/0.837, allocations: 6.721 MB / 0.5577 GB, free: 264 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.8383, allocations: 0.5384 MB / 0.5582 GB, free: 264 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001349/0.8397, allocations: 0.6395 MB / 0.5588 GB, free: 264 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01469/0.8544, allocations: 5.048 MB / 0.5637 GB, free: 0 / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.8544, allocations: 0.8125 kB / 0.5637 GB, free: 0 / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.8544, allocations: 0 / 0.5637 GB, free: 0 / 430.1 MB Notification: Performance of Transformations before backend: time 4.193e-05/0.8545, allocations: 0.7188 kB / 0.5637 GB, free: 0 / 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.006426/0.8609, allocations: 2.135 MB / 0.5658 GB, free: 14.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.861, allocations: 10.72 kB / 0.5658 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005235/0.8615, allocations: 133 kB / 0.566 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.8627, allocations: 0.6805 MB / 0.5666 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.8628, allocations: 133.5 kB / 0.5668 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.863, allocations: 93.5 kB / 0.5668 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.8653, allocations: 1.466 MB / 0.5683 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.8653, allocations: 5.438 kB / 0.5683 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.8654, allocations: 43.11 kB / 0.5683 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.92e-05/0.8655, allocations: 71.88 kB / 0.5684 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002118/0.8676, allocations: 1.469 MB / 0.5698 GB, free: 14.26 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.008801/0.8765, allocations: 6.345 MB / 0.576 GB, free: 10.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.8783, allocations: 0.9812 MB / 0.577 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007331/0.8791, allocations: 0.5206 MB / 0.5775 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00183/0.8809, allocations: 2.062 MB / 0.5795 GB, free: 8.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.881, allocations: 46.28 kB / 0.5796 GB, free: 7.98 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006454/0.8816, allocations: 103.1 kB / 0.5796 GB, free: 7.922 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 4.168e-06/0.8816, allocations: 0 / 0.5796 GB, free: 7.922 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01687/0.8985, allocations: 4.816 MB / 0.5844 GB, free: 6.203 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.8986, allocations: 116.7 kB / 0.5845 GB, free: 6.062 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.8997, allocations: 0.7701 MB / 0.5852 GB, free: 5.469 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.8999, allocations: 45.02 kB / 0.5853 GB, free: 5.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/0.9002, allocations: 452.9 kB / 0.5857 GB, free: 5.109 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003208/0.9005, allocations: 338.8 kB / 0.586 GB, free: 4.824 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004219/0.9009, allocations: 254.6 kB / 0.5863 GB, free: 4.656 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.9011, allocations: 408.9 kB / 0.5866 GB, free: 4.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.9023, allocations: 0.6179 MB / 0.5873 GB, free: 3.871 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.9038, allocations: 0.9583 MB / 0.5882 GB, free: 3.016 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002598/0.9064, allocations: 1.659 MB / 0.5898 GB, free: 1.777 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.9064, allocations: 4 kB / 0.5898 GB, free: 1.773 MB / 446.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003894/0.9103, allocations: 1.943 MB / 0.5917 GB, free: 320 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.386e-05/0.9104, allocations: 67.62 kB / 0.5918 GB, free: 244 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.9104, allocations: 12 kB / 0.5918 GB, free: 232 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.9119, allocations: 306.9 kB / 0.5921 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.913, allocations: 274.3 kB / 0.5923 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/0.9146, allocations: 0.9161 MB / 0.5932 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.9159, allocations: 108.2 kB / 0.5933 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.9161, allocations: 76.88 kB / 0.5934 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001553/0.9176, allocations: 0.848 MB / 0.5942 GB, free: 13.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001378/0.919, allocations: 0.945 MB / 0.5952 GB, free: 12.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002535/0.9216, allocations: 1.635 MB / 0.5968 GB, free: 10.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.602e-06/0.9216, allocations: 4 kB / 0.5968 GB, free: 10.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003797/0.9254, allocations: 1.907 MB / 0.5986 GB, free: 9.027 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.309e-05/0.9255, allocations: 71.34 kB / 0.5987 GB, free: 8.945 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.9255, allocations: 14.61 kB / 0.5987 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.9269, allocations: 307.4 kB / 0.599 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.928, allocations: 277.8 kB / 0.5993 GB, free: 8.379 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.9296, allocations: 0.9047 MB / 0.6001 GB, free: 7.453 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.9308, allocations: 105.3 kB / 0.6002 GB, free: 7.352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.931, allocations: 79.81 kB / 0.6003 GB, free: 7.277 MB / 462.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.000477/0.9315, allocations: 264.5 kB / 0.6006 GB, free: 7.031 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/0.9317, allocations: 98.88 kB / 0.6007 GB, free: 6.934 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003796/0.9355, allocations: 1.919 MB / 0.6025 GB, free: 4.992 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.9355, allocations: 12 kB / 0.6026 GB, free: 4.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.9356, allocations: 3.984 kB / 0.6026 GB, free: 4.977 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.9356, allocations: 3.984 kB / 0.6026 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005256/0.9408, allocations: 3.038 MB / 0.6055 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.9409, allocations: 0.875 kB / 0.6055 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008394/0.9417, allocations: 186.1 kB / 0.6057 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001722/0.9434, allocations: 378.5 kB / 0.6061 GB, free: 1.355 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.724e-05/0.9436, allocations: 39.98 kB / 0.6061 GB, free: 1.316 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.9449, allocations: 0.8776 MB / 0.607 GB, free: 428 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.945, allocations: 5.031 kB / 0.607 GB, free: 424 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00445/0.9494, allocations: 2.415 MB / 0.6093 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006797/0.9501, allocations: 327.7 kB / 0.6096 GB, free: 13.62 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.9503, allocations: 24 kB / 0.6097 GB, free: 13.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009584/0.9513, allocations: 83.83 kB / 0.6097 GB, free: 13.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.9515, allocations: 75.53 kB / 0.6098 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/0.9516, allocations: 59.95 kB / 0.6099 GB, free: 13.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007171/0.9523, allocations: 0.5693 MB / 0.6104 GB, free: 12.83 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.9523, allocations: 0 / 0.6104 GB, free: 12.83 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003507/0.9558, allocations: 1.167 MB / 0.6116 GB, free: 11.66 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.003334/0.9592, allocations: 1.153 MB / 0.6127 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006099/0.9653, allocations: 2.955 MB / 0.6156 GB, free: 7.676 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.9653, allocations: 448 / 0.6156 GB, free: 7.676 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.9668, allocations: 0.7465 MB / 0.6163 GB, free: 6.949 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.9694, allocations: 0.561 MB / 0.6169 GB, free: 6.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005105/0.9746, allocations: 2.889 MB / 0.6197 GB, free: 3.492 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.9752, allocations: 1.13 MB / 0.6208 GB, free: 2.336 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002128/0.9774, allocations: 0.6135 MB / 0.6214 GB, free: 1.719 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000399/0.9778, allocations: 119.4 kB / 0.6215 GB, free: 1.602 MB / 478.1 MB Notification: Performance of SimCode: time 1.413e-06/0.9778, allocations: 0 / 0.6215 GB, free: 1.602 MB / 478.1 MB Notification: Performance of Templates: time 0.05784/1.036, allocations: 41.53 MB / 0.6621 GB, free: 8.145 MB / 0.5137 GB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)