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.001026/0.001026, allocations: 96.94 kB / 15.36 MB, free: 0.7344 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.007686/0.007686, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.321/1.321, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2043/0.2043, allocations: 15.27 MB / 306.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003095, allocations: 8 kB / 372.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2657, allocations: 54.62 MB / 426.7 MB, free: 40.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.006441/0.2721, allocations: 9.044 MB / 435.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01955/0.2917, allocations: 23.88 MB / 459.6 MB, free: 19.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.2933, allocations: 35.75 kB / 459.7 MB, free: 19.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.2945, allocations: 457.1 kB / 460.1 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006598/0.3011, allocations: 1.888 MB / 462 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007775/0.3089, allocations: 2.646 MB / 464.6 MB, free: 16.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002992/0.3119, allocations: 2.361 MB / 467 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.3133, allocations: 1.149 MB / 468.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.3148, allocations: 1.13 MB / 469.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00161/0.3164, allocations: 1.246 MB / 470.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002369/0.3167, allocations: 113.1 kB / 470.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.3268, allocations: 2.575 MB / 473.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005602/0.3274, allocations: 418.5 kB / 473.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001349/0.3288, allocations: 0.9874 MB / 474.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01223/0.341, allocations: 4.703 MB / 479.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3411, allocations: 0 / 479.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3411, allocations: 0 / 479.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.01e-05/0.3411, allocations: 0.875 kB / 479.3 MB, free: 10.75 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.005549/0.3467, allocations: 2.207 MB / 481.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/0.3467, allocations: 9.312 kB / 481.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002146/0.3489, allocations: 417 kB / 481.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.3504, allocations: 0.902 MB / 482.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.3505, allocations: 187.9 kB / 483 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003223/0.3509, allocations: 182 kB / 483.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003671/0.3545, allocations: 2.089 MB / 485.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.877e-05/0.3546, allocations: 4.75 kB / 485.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001847/0.3548, allocations: 71.25 kB / 485.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-05/0.3548, allocations: 46.09 kB / 485.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004481/0.3593, allocations: 2.605 MB / 488 MB, free: 6.91 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.009983/0.3693, allocations: 6.586 MB / 494.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00428/0.3736, allocations: 3.138 MB / 497.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.375, allocations: 0.9173 MB / 498.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01147/0.3865, allocations: 7.995 MB / 0.4948 GB, free: 4.438 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.3865, allocations: 47.81 kB / 0.4948 GB, free: 4.383 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 2.896e-06/0.3865, allocations: 0 / 0.4948 GB, free: 4.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03137/0.4179, allocations: 7.069 MB / 0.5017 GB, free: 13.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.239e-05/0.418, allocations: 107.1 kB / 0.5018 GB, free: 13.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.4191, allocations: 0.7806 MB / 0.5026 GB, free: 12.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.4193, allocations: 57.7 kB / 0.5026 GB, free: 12.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005188/0.4198, allocations: 0.7327 MB / 0.5034 GB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005871/0.4204, allocations: 0.6161 MB / 0.504 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.4207, allocations: 157.6 kB / 0.5041 GB, free: 10.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.4208, allocations: 301.1 kB / 0.5044 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.422, allocations: 0.6209 MB / 0.505 GB, free: 9.719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.4235, allocations: 1.137 MB / 0.5061 GB, free: 8.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002824/0.4263, allocations: 1.921 MB / 0.508 GB, free: 6.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.4263, allocations: 8 kB / 0.508 GB, free: 6.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007904/0.4342, allocations: 2.49 MB / 0.5104 GB, free: 3.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.4343, allocations: 12.97 kB / 0.5104 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/0.4343, allocations: 16 kB / 0.5105 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004315/0.4386, allocations: 498.8 kB / 0.5109 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/0.4411, allocations: 0.5266 MB / 0.5115 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/0.4524, allocations: 6.99 MB / 0.5183 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.4542, allocations: 103.9 kB / 0.5184 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003273/0.4545, allocations: 96.17 kB / 0.5185 GB, free: 10.93 MB / 398.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.001036/0.4556, allocations: 381.8 kB / 0.5188 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003937/0.456, allocations: 138.3 kB / 0.519 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008578/0.4646, allocations: 2.457 MB / 0.5214 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.4646, allocations: 20 kB / 0.5214 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.4646, allocations: 0 / 0.5214 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/0.4646, allocations: 7.969 kB / 0.5214 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/0.475, allocations: 4.102 MB / 0.5254 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.4751, allocations: 4 kB / 0.5254 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.4771, allocations: 395.5 kB / 0.5258 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004347/0.4815, allocations: 486.8 kB / 0.5262 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001651/0.4817, allocations: 59.91 kB / 0.5263 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.4918, allocations: 6.823 MB / 0.533 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4918, allocations: 0 / 0.533 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00914/0.5009, allocations: 3.147 MB / 0.536 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005313/0.5015, allocations: 195.3 kB / 0.5362 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002973/0.5018, allocations: 39.94 kB / 0.5363 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.5029, allocations: 71.89 kB / 0.5363 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003794/0.5033, allocations: 141.7 kB / 0.5365 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.5035, allocations: 63.97 kB / 0.5365 GB, free: 7.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008353/0.5044, allocations: 0.5079 MB / 0.537 GB, free: 7.211 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5044, allocations: 0 / 0.537 GB, free: 7.211 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004104/0.5085, allocations: 1.054 MB / 0.538 GB, free: 6.156 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.003263/0.5118, allocations: 1.128 MB / 0.5392 GB, free: 5.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004203/0.516, allocations: 2.249 MB / 0.5413 GB, free: 2.719 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.516, allocations: 7.938 kB / 0.5414 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/0.5182, allocations: 1.392 MB / 0.5427 GB, free: 1.273 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002033/0.5202, allocations: 281.3 kB / 0.543 GB, free: 1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006677/0.5269, allocations: 4.027 MB / 0.5469 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.5281, allocations: 1.277 MB / 0.5482 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001723/0.5298, allocations: 359.4 kB / 0.5485 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005925/0.5304, allocations: 239.3 kB / 0.5487 GB, free: 11.04 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5304, allocations: 0 / 0.5487 GB, free: 11.04 MB / 430.1 MB Notification: Performance of Templates: time 0.05855/0.589, allocations: 36.18 MB / 0.5841 GB, free: 6.98 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)