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.0009326/0.0009326, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009218/0.0009219, allocations: 193.3 kB / 16.53 MB, free: 6.699 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.15/1.15, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1609/0.1609, allocations: 15.32 MB / 305.7 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 67.91 kB / 370.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08257/0.08369, allocations: 53.6 MB / 423.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.007946/0.09167, allocations: 8.383 MB / 432.3 MB, free: 5.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1537/0.2454, allocations: 24.15 MB / 456.5 MB, free: 36.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006368/0.2461, allocations: 23.62 kB / 456.5 MB, free: 36.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008535/0.247, allocations: 0.5088 MB / 457 MB, free: 36.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003293/0.2503, allocations: 2.141 MB / 459.1 MB, free: 35.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004929/0.2552, allocations: 3.012 MB / 462.2 MB, free: 33.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.2567, allocations: 2.426 MB / 464.6 MB, free: 33.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009102/0.2577, allocations: 1.407 MB / 466 MB, free: 32.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007108/0.2584, allocations: 1.205 MB / 467.2 MB, free: 32.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.2594, allocations: 1.341 MB / 468.5 MB, free: 31.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000244/0.2597, allocations: 220.3 kB / 468.7 MB, free: 31.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005272/0.2649, allocations: 2.656 MB / 471.4 MB, free: 30.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002958/0.2652, allocations: 0.506 MB / 471.9 MB, free: 30.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006744/0.2659, allocations: 1.076 MB / 473 MB, free: 29.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006089/0.272, allocations: 5.043 MB / 478 MB, free: 27.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.272, allocations: 0.6094 kB / 478 MB, free: 27.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2721, allocations: 1.062 kB / 478 MB, free: 27.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.24e-05/0.2721, allocations: 0 / 478 MB, free: 27.7 MB / 366.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.004213/0.2763, allocations: 2.647 MB / 480.7 MB, free: 26.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.2763, allocations: 13.38 kB / 480.7 MB, free: 26.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001524/0.2779, allocations: 416.5 kB / 481.1 MB, free: 26.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.2791, allocations: 0.9247 MB / 482 MB, free: 25.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.2792, allocations: 191.8 kB / 482.2 MB, free: 25.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002404/0.2794, allocations: 186 kB / 482.4 MB, free: 25.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0028/0.2822, allocations: 2.09 MB / 484.5 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.2823, allocations: 0 / 484.5 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001641/0.2824, allocations: 71.12 kB / 484.5 MB, free: 24.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.837e-05/0.2825, allocations: 43.03 kB / 484.6 MB, free: 24.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003433/0.2859, allocations: 2.613 MB / 487.2 MB, free: 23.64 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.008226/0.2942, allocations: 6.674 MB / 493.9 MB, free: 19.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003877/0.298, allocations: 3.131 MB / 497 MB, free: 18.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.2991, allocations: 0.9276 MB / 497.9 MB, free: 17.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007665/0.3068, allocations: 8.141 MB / 0.4942 GB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.3068, allocations: 53.69 kB / 0.4943 GB, free: 11.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 2.575e-06/0.3069, allocations: 4 kB / 0.4943 GB, free: 11.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02364/0.3305, allocations: 6.987 MB / 0.5011 GB, free: 5.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.3305, allocations: 99.11 kB / 0.5012 GB, free: 4.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006032/0.3312, allocations: 0.7844 MB / 0.502 GB, free: 4.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.239e-05/0.3312, allocations: 57.7 kB / 0.502 GB, free: 4.035 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.3315, allocations: 0.7367 MB / 0.5027 GB, free: 3.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.3318, allocations: 0.6083 MB / 0.5033 GB, free: 2.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003743/0.3322, allocations: 363.4 kB / 0.5037 GB, free: 2.305 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.429e-05/0.3322, allocations: 301.1 kB / 0.504 GB, free: 2.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008145/0.333, allocations: 0.6209 MB / 0.5046 GB, free: 1.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009534/0.334, allocations: 1.121 MB / 0.5057 GB, free: 36 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002425/0.3364, allocations: 1.921 MB / 0.5075 GB, free: 13.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.3364, allocations: 11.94 kB / 0.5075 GB, free: 13.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.00637/0.3428, allocations: 2.475 MB / 0.51 GB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.3428, allocations: 12 kB / 0.51 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.3429, allocations: 16.94 kB / 0.51 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003364/0.3462, allocations: 480.1 kB / 0.5104 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/0.3483, allocations: 0.5227 MB / 0.511 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009165/0.3575, allocations: 7.669 MB / 0.5184 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.3586, allocations: 67.98 kB / 0.5185 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.3588, allocations: 108.5 kB / 0.5186 GB, free: 1.977 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.0005524/0.3594, allocations: 370.6 kB / 0.519 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.3596, allocations: 142.3 kB / 0.5191 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006845/0.3665, allocations: 2.435 MB / 0.5215 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.3665, allocations: 16 kB / 0.5215 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3665, allocations: 8.078 kB / 0.5215 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.3665, allocations: 11.95 kB / 0.5215 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008252/0.3748, allocations: 4.083 MB / 0.5255 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3748, allocations: 3 kB / 0.5255 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001782/0.3766, allocations: 391.5 kB / 0.5259 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003288/0.3799, allocations: 458.9 kB / 0.5263 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.38, allocations: 55.97 kB / 0.5264 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008301/0.3883, allocations: 7.518 MB / 0.5337 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3884, allocations: 4.062 kB / 0.5337 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007085/0.3954, allocations: 3.135 MB / 0.5368 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3957, allocations: 187.4 kB / 0.537 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.3959, allocations: 40 kB / 0.537 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007869/0.3967, allocations: 39.92 kB / 0.537 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/0.397, allocations: 137.8 kB / 0.5372 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.3971, allocations: 63.97 kB / 0.5372 GB, free: 14.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005378/0.3976, allocations: 0.5118 MB / 0.5377 GB, free: 13.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3976, allocations: 0 / 0.5377 GB, free: 13.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002922/0.4006, allocations: 1.058 MB / 0.5388 GB, free: 12.63 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 (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.002134/0.4027, allocations: 1.151 MB / 0.5399 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004233/0.407, allocations: 2.355 MB / 0.5422 GB, free: 9.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.407, allocations: 4 kB / 0.5422 GB, free: 9.066 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.4088, allocations: 1.4 MB / 0.5436 GB, free: 7.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.4101, allocations: 306.5 kB / 0.5438 GB, free: 7.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004391/0.4145, allocations: 3.164 MB / 0.5469 GB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.4152, allocations: 1.28 MB / 0.5482 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001329/0.4166, allocations: 349.6 kB / 0.5485 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004632/0.417, allocations: 241.6 kB / 0.5488 GB, free: 2.246 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.417, allocations: 0 / 0.5488 GB, free: 2.246 MB / 414.1 MB Notification: Performance of Templates: time 0.04598/0.463, allocations: 37.52 MB / 0.5854 GB, free: 12.85 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)