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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001496/0.001496, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1856/0.1856, allocations: 15.28 MB / 306.4 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 8 kB / 371.5 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2622, allocations: 54.62 MB / 426.1 MB, free: 40.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.006418/0.2687, allocations: 8.466 MB / 434.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.2873, allocations: 22.24 MB / 456.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.2888, allocations: 39.38 kB / 456.8 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.2902, allocations: 459.1 kB / 457.3 MB, free: 20.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005452/0.2957, allocations: 1.93 MB / 459.2 MB, free: 19.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005889/0.3016, allocations: 2.438 MB / 461.7 MB, free: 18.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002454/0.304, allocations: 2.236 MB / 463.9 MB, free: 17.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.3054, allocations: 1.061 MB / 465 MB, free: 16.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001383/0.3068, allocations: 0.9646 MB / 465.9 MB, free: 16.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.3084, allocations: 1.214 MB / 467.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003322/0.3088, allocations: 113 kB / 467.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006999/0.3158, allocations: 2.48 MB / 469.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006653/0.3165, allocations: 406.4 kB / 470.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007676/0.3172, allocations: 371.5 kB / 470.5 MB, free: 15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005827/0.3231, allocations: 3.815 MB / 474.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3231, allocations: 1.375 kB / 474.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3231, allocations: 0.6094 kB / 474.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.271e-05/0.3232, allocations: 3.938 kB / 474.3 MB, free: 13.56 MB / 350.1 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.005958/0.3292, allocations: 2.219 MB / 476.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3292, allocations: 9.719 kB / 476.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002107/0.3313, allocations: 413.5 kB / 476.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.3331, allocations: 0.8664 MB / 477.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.3333, allocations: 187.9 kB / 478 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003906/0.3337, allocations: 190 kB / 478.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003949/0.3376, allocations: 2.072 MB / 480.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.73e-05/0.3377, allocations: 0 / 480.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/0.3379, allocations: 70.59 kB / 480.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.726e-05/0.3379, allocations: 43.28 kB / 480.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00463/0.3426, allocations: 2.598 MB / 483 MB, free: 9.754 MB / 350.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.01105/0.3537, allocations: 6.595 MB / 489.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004128/0.3578, allocations: 3.117 MB / 492.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.359, allocations: 0.9134 MB / 493.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/0.37, allocations: 7.983 MB / 0.4898 GB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.3701, allocations: 55.81 kB / 0.4899 GB, free: 9.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.446e-06/0.3701, allocations: 0 / 0.4899 GB, free: 9.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03018/0.4003, allocations: 7.06 MB / 0.4968 GB, free: 1.863 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.4004, allocations: 103.1 kB / 0.4969 GB, free: 1.742 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.4015, allocations: 0.7728 MB / 0.4976 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001999/0.4017, allocations: 57.7 kB / 0.4977 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004978/0.4022, allocations: 0.7405 MB / 0.4984 GB, free: 132 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000586/0.4028, allocations: 0.6084 MB / 0.499 GB, free: 15.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.403, allocations: 40 kB / 0.499 GB, free: 15.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4031, allocations: 385.8 kB / 0.4994 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.4043, allocations: 0.6092 MB / 0.5 GB, free: 14.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/0.4058, allocations: 1.114 MB / 0.5011 GB, free: 13.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.4073, allocations: 0.7751 MB / 0.5018 GB, free: 12.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.4073, allocations: 4 kB / 0.5018 GB, free: 12.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007563/0.4148, allocations: 2.486 MB / 0.5043 GB, free: 9.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.4149, allocations: 12 kB / 0.5043 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.4149, allocations: 12.91 kB / 0.5043 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003981/0.4189, allocations: 0.4988 MB / 0.5048 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/0.4213, allocations: 0.5188 MB / 0.5053 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/0.4318, allocations: 6.984 MB / 0.5121 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.4334, allocations: 104 kB / 0.5122 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003716/0.4338, allocations: 99.97 kB / 0.5123 GB, free: 1.078 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 242 * 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: 4 * 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: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008567/0.4347, allocations: 373.2 kB / 0.5127 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003532/0.4351, allocations: 134.3 kB / 0.5128 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007713/0.4428, allocations: 2.452 MB / 0.5152 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.4428, allocations: 23.94 kB / 0.5152 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.4428, allocations: 3.984 kB / 0.5152 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.551e-05/0.4429, allocations: 11.91 kB / 0.5152 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009511/0.4524, allocations: 4.083 MB / 0.5192 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.4524, allocations: 0 / 0.5192 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/0.4544, allocations: 391.5 kB / 0.5196 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00412/0.4585, allocations: 483 kB / 0.52 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000262/0.4588, allocations: 55.97 kB / 0.5201 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009116/0.4679, allocations: 6.811 MB / 0.5267 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.468, allocations: 4.062 kB / 0.5267 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0087/0.4767, allocations: 3.143 MB / 0.5298 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004485/0.4772, allocations: 199.3 kB / 0.53 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003646/0.4775, allocations: 35.95 kB / 0.53 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.4787, allocations: 67.88 kB / 0.5301 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003766/0.4791, allocations: 137.8 kB / 0.5302 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/0.4793, allocations: 67.97 kB / 0.5303 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007567/0.48, allocations: 0.5001 MB / 0.5308 GB, free: 13.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4801, allocations: 0 / 0.5308 GB, free: 13.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003839/0.4839, allocations: 1.062 MB / 0.5318 GB, free: 12.38 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (solution.temperature,H3O.logn,OH.logn,H2O.logn,solution1.temperature,H_.logn,OH_.logn,H2O_.logn) * 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 (178): * Single equations (assignments): 174 * 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: 4 * 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: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002639/0.4866, allocations: 1.147 MB / 0.5329 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004005/0.4906, allocations: 2.233 MB / 0.5351 GB, free: 8.941 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.4906, allocations: 0.5 kB / 0.5351 GB, free: 8.941 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00224/0.4929, allocations: 1.388 MB / 0.5365 GB, free: 7.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.4948, allocations: 286.9 kB / 0.5368 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0059/0.5007, allocations: 3.87 MB / 0.5405 GB, free: 3.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009534/0.5017, allocations: 1.284 MB / 0.5418 GB, free: 1.992 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001724/0.5035, allocations: 355.2 kB / 0.5421 GB, free: 1.641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/0.5041, allocations: 235.3 kB / 0.5424 GB, free: 1.41 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5041, allocations: 0 / 0.5424 GB, free: 1.41 MB / 414.1 MB Notification: Performance of Templates: time 0.05041/0.5545, allocations: 35.09 MB / 0.5766 GB, free: 14.44 MB / 462.1 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)