Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09576/0.09576, allocations: 15.26 MB / 22.73 MB, free: 0.9531 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 185 kB / 27.52 MB, free: 6.113 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.5 MB / 253.7 MB, free: 10.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000987/0.0009869, allocations: 98.31 kB / 308.8 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.602e-05/1.604e-05, allocations: 5.969 kB / 369.6 MB, free: 53.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09844, allocations: 54.63 MB / 424.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3793/0.4778, allocations: 102.6 MB / 0.5145 GB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.4781, allocations: 68.06 kB / 0.5146 GB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1578/0.6359, allocations: 64.14 MB / 0.5772 GB, free: 15.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.636, allocations: 3.938 kB / 0.5772 GB, free: 15.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001299/0.6361, allocations: 32 kB / 0.5772 GB, free: 15.46 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.006012/0.6421, allocations: 1.856 MB / 0.5791 GB, free: 13.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.6422, allocations: 12.02 kB / 0.5791 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00243/0.6446, allocations: 452.9 kB / 0.5795 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003079/0.6477, allocations: 0.9804 MB / 0.5805 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.6479, allocations: 118.3 kB / 0.5806 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006038/0.6486, allocations: 91.89 kB / 0.5807 GB, free: 11.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006202/0.6548, allocations: 3.984 MB / 0.5845 GB, free: 7.879 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/0.6581, allocations: 2.102 MB / 0.5866 GB, free: 5.742 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.6581, allocations: 0 / 0.5866 GB, free: 5.742 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.6582, allocations: 4 kB / 0.5866 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.894e-05/0.6583, allocations: 36 kB / 0.5866 GB, free: 5.703 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01263/0.6709, allocations: 8.042 MB / 0.5945 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004708/0.6756, allocations: 3.738 MB / 0.5981 GB, free: 9.707 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001555/0.6772, allocations: 1.339 MB / 0.5994 GB, free: 8.367 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006004/0.6778, allocations: 416.4 kB / 0.5998 GB, free: 7.973 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.6779, allocations: 52.56 kB / 0.5999 GB, free: 7.91 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001159/0.679, allocations: 182.5 kB / 0.6001 GB, free: 7.734 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 3.918e-06/0.6791, allocations: 0 / 0.6001 GB, free: 7.734 MB / 410.7 MB Notification: Performance of matching and sorting (n=225): time 0.03486/0.7139, allocations: 11.13 MB / 0.6109 GB, free: 12.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.714, allocations: 73.41 kB / 0.611 GB, free: 12.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.7152, allocations: 0.8708 MB / 0.6119 GB, free: 11.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.7154, allocations: 25.7 kB / 0.6119 GB, free: 11.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003396/0.7157, allocations: 0.5323 MB / 0.6124 GB, free: 11.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006439/0.7164, allocations: 0.7234 MB / 0.6131 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.7165, allocations: 3.938 kB / 0.6131 GB, free: 10.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.7167, allocations: 450.8 kB / 0.6135 GB, free: 9.902 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/0.7188, allocations: 1.566 MB / 0.6151 GB, free: 8.332 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/0.7209, allocations: 1.8 MB / 0.6168 GB, free: 6.461 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004412/0.7253, allocations: 2.08 MB / 0.6189 GB, free: 4.387 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.7253, allocations: 0 / 0.6189 GB, free: 4.387 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01092/0.7362, allocations: 4.658 MB / 0.6234 GB, free: 15.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.7363, allocations: 8 kB / 0.6234 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.7363, allocations: 4 kB / 0.6234 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003345/0.7397, allocations: 0.6707 MB / 0.6241 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001986/0.7417, allocations: 463.3 kB / 0.6245 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005833/0.7475, allocations: 4.309 MB / 0.6287 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002899/0.7505, allocations: 211.5 kB / 0.6289 GB, free: 9.781 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/0.7507, allocations: 107.9 kB / 0.629 GB, free: 9.676 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (241): * Single equations (assignments): 235 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000483/0.7512, allocations: 152.4 kB / 0.6292 GB, free: 9.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/0.7515, allocations: 126.4 kB / 0.6293 GB, free: 9.395 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01424/0.7658, allocations: 5.119 MB / 0.6343 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01345/0.7793, allocations: 4.649 MB / 0.6388 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.7793, allocations: 0 / 0.6388 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.358e-05/0.7794, allocations: 11.95 kB / 0.6388 GB, free: 15.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02094/0.8003, allocations: 10.52 MB / 0.6491 GB, free: 4.895 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.099e-05/0.8004, allocations: 8 kB / 0.6491 GB, free: 4.887 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/0.8022, allocations: 416 kB / 0.6495 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006611/0.8088, allocations: 1.363 MB / 0.6509 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004072/0.8092, allocations: 55.88 kB / 0.6509 GB, free: 3.051 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/0.8208, allocations: 7.356 MB / 0.6581 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005726/0.8266, allocations: 2.454 MB / 0.6605 GB, free: 8.848 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01569/0.8423, allocations: 7.661 MB / 0.668 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.8429, allocations: 247.3 kB / 0.6682 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/0.8431, allocations: 23.98 kB / 0.6682 GB, free: 0.5117 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.8447, allocations: 107.8 kB / 0.6683 GB, free: 416 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/0.8451, allocations: 225.3 kB / 0.6685 GB, free: 188 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001635/0.8452, allocations: 91.92 kB / 0.6686 GB, free: 96 kB / 474.7 MB Notification: Performance of sorting global known variables: time 0.2344/1.08, allocations: 0.6864 MB / 0.6693 GB, free: 118.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.08, allocations: 0 / 0.6693 GB, free: 118.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0051/1.085, allocations: 1.356 MB / 0.6706 GB, free: 118.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.002753/1.088, allocations: 1.177 MB / 0.6718 GB, free: 118.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006954/1.095, allocations: 3.9 MB / 0.6756 GB, free: 118 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.095, allocations: 4 kB / 0.6756 GB, free: 118 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00494/1.1, allocations: 2.48 MB / 0.678 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/1.101, allocations: 248.6 kB / 0.6782 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004577/1.106, allocations: 3.399 MB / 0.6816 GB, free: 116.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007492/1.107, allocations: 1.341 MB / 0.6829 GB, free: 115.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001471/1.108, allocations: 325.7 kB / 0.6832 GB, free: 115.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006159/1.109, allocations: 190.6 kB / 0.6834 GB, free: 115.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.402e-06/1.109, allocations: 0 / 0.6834 GB, free: 115.9 MB / 474.7 MB Notification: Performance of Templates: time 0.05522/1.164, allocations: 41.73 MB / 0.7241 GB, free: 113.8 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)