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.001473/0.001473, allocations: 108.7 kB / 16.37 MB, free: 6.465 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.001667/0.001667, allocations: 193.1 kB / 17.31 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08548/0.08548, allocations: 15.31 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 66.81 kB / 371.8 MB, free: 51.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.1011, allocations: 53.62 MB / 425.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.007382/0.1085, allocations: 8.377 MB / 433.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02539/0.1339, allocations: 24.16 MB / 457.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/0.1354, allocations: 19.88 kB / 457.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.1371, allocations: 0.5079 MB / 458.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006045/0.1432, allocations: 2.146 MB / 460.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009076/0.1523, allocations: 3.014 MB / 463.6 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004541/0.1568, allocations: 2.438 MB / 466 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.159, allocations: 1.407 MB / 467.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002388/0.1614, allocations: 1.208 MB / 468.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002669/0.1641, allocations: 1.347 MB / 470 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006504/0.1647, allocations: 216 kB / 470.2 MB, free: 384 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009066/0.1738, allocations: 2.652 MB / 472.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009648/0.1748, allocations: 0.5102 MB / 473.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002129/0.177, allocations: 1.081 MB / 474.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01265/0.1896, allocations: 5.061 MB / 479.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1897, allocations: 0 / 479.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1897, allocations: 0 / 479.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.648e-05/0.1898, allocations: 0 / 479.5 MB, free: 7.043 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.005684/0.1955, allocations: 2.657 MB / 482.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.1955, allocations: 8.031 kB / 482.2 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.1973, allocations: 406 kB / 482.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/0.199, allocations: 0.9592 MB / 483.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.1992, allocations: 199.4 kB / 483.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003008/0.1995, allocations: 192.2 kB / 483.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003317/0.2028, allocations: 2.077 MB / 486 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.2029, allocations: 0 / 486 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.2031, allocations: 79.94 kB / 486.1 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.398e-05/0.2031, allocations: 48 kB / 486.1 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003819/0.2069, allocations: 2.604 MB / 488.7 MB, free: 13.68 MB / 366.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.01017/0.2171, allocations: 6.619 MB / 495.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004723/0.2218, allocations: 3.131 MB / 498.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.2233, allocations: 0.9251 MB / 499.4 MB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/0.2357, allocations: 8.135 MB / 0.4956 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.2358, allocations: 51.81 kB / 0.4957 GB, free: 9.473 MB / 382.1 MB Notification: Performance of pre-optimization done (n=144): time 3.376e-06/0.2358, allocations: 0 / 0.4957 GB, free: 9.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=180): time 0.03174/0.2675, allocations: 6.989 MB / 0.5025 GB, free: 2.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.2676, allocations: 99.05 kB / 0.5026 GB, free: 2.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.2687, allocations: 0.7883 MB / 0.5034 GB, free: 1.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002059/0.2689, allocations: 53.7 kB / 0.5034 GB, free: 1.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005203/0.2695, allocations: 0.7405 MB / 0.5041 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1688/0.4383, allocations: 0.6069 MB / 0.5047 GB, free: 80.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007367/0.4391, allocations: 359.7 kB / 0.5051 GB, free: 79.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.705e-05/0.4391, allocations: 302 kB / 0.5054 GB, free: 79.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009836/0.4401, allocations: 0.6175 MB / 0.506 GB, free: 79.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.4414, allocations: 1.132 MB / 0.5071 GB, free: 79.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002476/0.4439, allocations: 1.921 MB / 0.509 GB, free: 78.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.4439, allocations: 4.719 kB / 0.509 GB, free: 78.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.006912/0.4508, allocations: 2.468 MB / 0.5114 GB, free: 77.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.4508, allocations: 11.75 kB / 0.5114 GB, free: 77.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4509, allocations: 15.75 kB / 0.5114 GB, free: 77.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00383/0.4547, allocations: 469.9 kB / 0.5118 GB, free: 77.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002267/0.457, allocations: 0.5238 MB / 0.5124 GB, free: 77.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008989/0.466, allocations: 7.679 MB / 0.5199 GB, free: 70.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.4673, allocations: 67.45 kB / 0.5199 GB, free: 70.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.4675, allocations: 99.89 kB / 0.52 GB, free: 70.42 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006/0.4681, allocations: 367.2 kB / 0.5204 GB, free: 70.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/0.4684, allocations: 134.9 kB / 0.5205 GB, free: 70.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007606/0.476, allocations: 2.437 MB / 0.5229 GB, free: 69.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/0.476, allocations: 23.19 kB / 0.5229 GB, free: 69.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.476, allocations: 3.625 kB / 0.5229 GB, free: 69.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.4761, allocations: 11.3 kB / 0.5229 GB, free: 69.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008859/0.4849, allocations: 4.084 MB / 0.5269 GB, free: 67.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/0.485, allocations: 0 / 0.5269 GB, free: 67.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.4868, allocations: 391.2 kB / 0.5273 GB, free: 67.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003703/0.4905, allocations: 460.3 kB / 0.5277 GB, free: 67.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.4907, allocations: 56.86 kB / 0.5278 GB, free: 67.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007952/0.4986, allocations: 7.511 MB / 0.5351 GB, free: 60.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4987, allocations: 2.5 kB / 0.5351 GB, free: 60.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007586/0.5063, allocations: 3.14 MB / 0.5382 GB, free: 58.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.5065, allocations: 204.5 kB / 0.5384 GB, free: 58.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.5067, allocations: 30.44 kB / 0.5384 GB, free: 58.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008791/0.5076, allocations: 35.12 kB / 0.5384 GB, free: 58.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.5079, allocations: 142.2 kB / 0.5386 GB, free: 58.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.508, allocations: 65.44 kB / 0.5386 GB, free: 58.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005666/0.5086, allocations: 0.4985 MB / 0.5391 GB, free: 58.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5086, allocations: 0 / 0.5391 GB, free: 58.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002784/0.5114, allocations: 1.06 MB / 0.5401 GB, free: 57.14 MB / 382.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002049/0.5134, allocations: 1.152 MB / 0.5413 GB, free: 56.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003254/0.5167, allocations: 2.257 MB / 0.5435 GB, free: 53.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.5167, allocations: 0 / 0.5435 GB, free: 53.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.5184, allocations: 1.398 MB / 0.5448 GB, free: 52.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.5197, allocations: 316.4 kB / 0.5451 GB, free: 52.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004449/0.5242, allocations: 3.143 MB / 0.5482 GB, free: 49.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.5248, allocations: 1.277 MB / 0.5495 GB, free: 47.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001101/0.5259, allocations: 343.5 kB / 0.5498 GB, free: 47.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.5264, allocations: 243.2 kB / 0.55 GB, free: 47.16 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5264, allocations: 4 kB / 0.55 GB, free: 47.16 MB / 382.1 MB Notification: Performance of Templates: time 0.04542/0.5718, allocations: 37.53 MB / 0.5867 GB, free: 9.824 MB / 382.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)