Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.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.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.WaterSelfIonization") translateModel(Chemical.Examples.AcidBase.WaterSelfIonization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.WaterSelfIonization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1235/0.1235, 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.001036/0.001036, 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.518/1.518, allocations: 221.5 MB / 253.7 MB, free: 10.39 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.0008636/0.0008636, allocations: 90.27 kB / 308.8 MB, free: 10.44 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.676e-05/1.677e-05, allocations: 2.688 kB / 369.6 MB, free: 53.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 54.63 MB / 424.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4152/0.5252, allocations: 99.41 MB / 0.5113 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.5256, allocations: 67.36 kB / 0.5114 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1603/0.6858, allocations: 67.76 MB / 0.5776 GB, free: 14.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.6859, allocations: 3.938 kB / 0.5776 GB, free: 14.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001189/0.686, allocations: 32 kB / 0.5776 GB, free: 14.52 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: 446 * Number of variables: 446 Notification: Performance of Generate backend data structure: time 0.005589/0.6916, allocations: 2.076 MB / 0.5796 GB, free: 12.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.6917, allocations: 12.02 kB / 0.5797 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002193/0.6939, allocations: 484.8 kB / 0.5801 GB, free: 11.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/0.6965, allocations: 1.062 MB / 0.5812 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.6967, allocations: 126.9 kB / 0.5813 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005689/0.6973, allocations: 111.9 kB / 0.5814 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006412/0.7037, allocations: 4.165 MB / 0.5855 GB, free: 6.406 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004397/0.7081, allocations: 2.258 MB / 0.5877 GB, free: 4.117 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/0.7082, allocations: 0 / 0.5877 GB, free: 4.117 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/0.7084, allocations: 0 / 0.5877 GB, free: 4.117 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.7084, allocations: 47.95 kB / 0.5877 GB, free: 4.07 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.01401/0.7224, allocations: 8.49 MB / 0.596 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005148/0.7276, allocations: 3.953 MB / 0.5999 GB, free: 7.332 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/0.7295, allocations: 1.462 MB / 0.6013 GB, free: 5.863 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007961/0.7304, allocations: 498.2 kB / 0.6018 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.7304, allocations: 61.12 kB / 0.6018 GB, free: 5.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=204): time 3.747e-06/0.7304, allocations: 4 kB / 0.6018 GB, free: 5.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.05474/0.7852, allocations: 13.74 MB / 0.6152 GB, free: 7.535 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.7853, allocations: 103.7 kB / 0.6153 GB, free: 7.418 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.7865, allocations: 0.652 MB / 0.616 GB, free: 6.766 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005021/0.787, allocations: 25.7 kB / 0.616 GB, free: 6.734 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/0.7875, allocations: 0.5798 MB / 0.6166 GB, free: 6.145 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/0.7887, allocations: 0.8889 MB / 0.6174 GB, free: 5.242 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004538/0.7892, allocations: 0 / 0.6174 GB, free: 5.242 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003562/0.7896, allocations: 451.8 kB / 0.6179 GB, free: 4.793 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00303/0.7926, allocations: 1.703 MB / 0.6195 GB, free: 3.086 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00309/0.7957, allocations: 1.954 MB / 0.6214 GB, free: 1.059 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005863/0.8016, allocations: 2.243 MB / 0.6236 GB, free: 14.81 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.8017, allocations: 4 kB / 0.6236 GB, free: 14.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.01526/0.8169, allocations: 5.08 MB / 0.6286 GB, free: 9.703 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.069e-05/0.8171, allocations: 4 kB / 0.6286 GB, free: 9.699 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/0.8171, allocations: 8.625 kB / 0.6286 GB, free: 9.691 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00515/0.8223, allocations: 0.7035 MB / 0.6293 GB, free: 8.969 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003646/0.8259, allocations: 0.5812 MB / 0.6299 GB, free: 8.387 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/0.838, allocations: 8.192 MB / 0.6379 GB, free: 15.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/0.841, allocations: 207.6 kB / 0.6381 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006444/0.8417, allocations: 120.3 kB / 0.6382 GB, free: 15.36 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O_.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: H2O_.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H2O.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: H2O.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: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 274 * Array equations: 4 * Algorithm blocks: 0 * 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: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009687/0.8426, allocations: 167.5 kB / 0.6383 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005997/0.8433, allocations: 146.2 kB / 0.6385 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01857/0.8618, allocations: 5.757 MB / 0.6441 GB, free: 9.254 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01774/0.8796, allocations: 5.279 MB / 0.6492 GB, free: 3.949 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.341e-05/0.8797, allocations: 3.984 kB / 0.6493 GB, free: 3.945 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001216/0.8798, allocations: 15.89 kB / 0.6493 GB, free: 3.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03015/0.91, allocations: 12.04 MB / 0.661 GB, free: 7.727 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.501e-05/0.9101, allocations: 8 kB / 0.661 GB, free: 7.719 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003014/0.9132, allocations: 0.5266 MB / 0.6615 GB, free: 7.191 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009697/0.9229, allocations: 1.46 MB / 0.663 GB, free: 5.715 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005703/0.9235, allocations: 55.88 kB / 0.663 GB, free: 5.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2875/1.211, allocations: 11.37 MB / 0.6741 GB, free: 110.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01103/1.222, allocations: 4.583 MB / 0.6786 GB, free: 107.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02133/1.243, allocations: 8.66 MB / 0.6871 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006671/1.244, allocations: 259 kB / 0.6873 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006974/1.245, allocations: 25.97 kB / 0.6873 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/1.247, allocations: 120.4 kB / 0.6874 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000644/1.248, allocations: 255.7 kB / 0.6877 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003283/1.248, allocations: 108.5 kB / 0.6878 GB, free: 105.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007117/1.249, allocations: 0.4988 MB / 0.6883 GB, free: 105.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.249, allocations: 7.188 kB / 0.6883 GB, free: 105.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005391/1.254, allocations: 1.449 MB / 0.6897 GB, free: 105.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 8 ($STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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 (264): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * 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: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 6,5 8,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002776/1.257, allocations: 1.235 MB / 0.6909 GB, free: 105.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005478/1.263, allocations: 4.376 MB / 0.6952 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.263, allocations: 5.562 kB / 0.6952 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00384/1.267, allocations: 2.802 MB / 0.6979 GB, free: 104.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/1.268, allocations: 283 kB / 0.6982 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009201/1.278, allocations: 4.772 MB / 0.7029 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/1.279, allocations: 1.464 MB / 0.7043 GB, free: 102.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001623/1.28, allocations: 339.7 kB / 0.7046 GB, free: 102.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007351/1.281, allocations: 199.3 kB / 0.7048 GB, free: 102.7 MB / 474.7 MB Notification: Performance of SimCode: time 9.72e-07/1.281, allocations: 3.906 kB / 0.7048 GB, free: 102.7 MB / 474.7 MB Notification: Performance of Templates: time 0.05762/1.339, allocations: 46.91 MB / 0.7506 GB, free: 89 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.makefile (rm -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.sim & ./Chemical_Chemical.Examples.AcidBase.WaterSelfIonization -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)