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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.0009837/0.0009835, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001247/0.001247, allocations: 177.3 kB / 15.95 MB, free: 216 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.305/1.305, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2213/0.2213, allocations: 15.25 MB / 306.2 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005114/0.0005114, allocations: 8 kB / 371.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2993, allocations: 54.62 MB / 426 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.00612/0.3054, allocations: 7.579 MB / 433.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01678/0.3223, allocations: 20.39 MB / 453.9 MB, free: 23.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.3235, allocations: 38.81 kB / 454 MB, free: 23.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.3245, allocations: 480.8 kB / 454.5 MB, free: 22.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005033/0.3296, allocations: 2.137 MB / 456.6 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00731/0.3369, allocations: 2.682 MB / 459.3 MB, free: 19.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003527/0.3405, allocations: 1.599 MB / 460.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001116/0.3416, allocations: 1.064 MB / 461.9 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009616/0.3426, allocations: 0.8709 MB / 462.8 MB, free: 18.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001174/0.3438, allocations: 1.159 MB / 464 MB, free: 17.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002008/0.344, allocations: 112.4 kB / 464.1 MB, free: 17.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00872/0.3527, allocations: 2.899 MB / 467 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004953/0.3532, allocations: 397 kB / 467.4 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006786/0.3539, allocations: 362.4 kB / 467.7 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006781/0.3607, allocations: 3.026 MB / 470.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.3607, allocations: 0 / 470.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.3607, allocations: 0 / 470.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.775e-05/0.3608, allocations: 0 / 470.7 MB, free: 15.82 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.004992/0.3658, allocations: 2.203 MB / 472.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3659, allocations: 9.656 kB / 473 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/0.3676, allocations: 413.4 kB / 473.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001439/0.3691, allocations: 0.8407 MB / 474.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3692, allocations: 191.1 kB / 474.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003052/0.3695, allocations: 181.6 kB / 474.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003522/0.3731, allocations: 2.058 MB / 476.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/0.3731, allocations: 0 / 476.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.3733, allocations: 75.84 kB / 476.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.3733, allocations: 42.5 kB / 476.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004235/0.3776, allocations: 2.599 MB / 479.3 MB, free: 12.02 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.009986/0.3876, allocations: 6.54 MB / 485.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004312/0.3919, allocations: 3.11 MB / 489 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009091/0.401, allocations: 7.933 MB / 496.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.4011, allocations: 47.88 kB / 497 MB, free: 13.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.166e-06/0.4011, allocations: 3.938 kB / 497 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.02908/0.4302, allocations: 7.062 MB / 0.4922 GB, free: 6.449 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.4303, allocations: 95.11 kB / 0.4923 GB, free: 6.336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.4313, allocations: 0.7729 MB / 0.4931 GB, free: 5.539 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002476/0.4316, allocations: 61.7 kB / 0.4931 GB, free: 5.473 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004761/0.4321, allocations: 0.7366 MB / 0.4938 GB, free: 4.723 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005107/0.4326, allocations: 0.6084 MB / 0.4944 GB, free: 4.105 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.363e-05/0.4327, allocations: 40 kB / 0.4945 GB, free: 4.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4328, allocations: 381.9 kB / 0.4948 GB, free: 3.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.4339, allocations: 0.6131 MB / 0.4954 GB, free: 3.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.4353, allocations: 1.117 MB / 0.4965 GB, free: 1.727 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.4365, allocations: 0.7673 MB / 0.4973 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.4365, allocations: 8 kB / 0.4973 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007249/0.4438, allocations: 2.482 MB / 0.4997 GB, free: 14.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.4438, allocations: 13 kB / 0.4997 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.4439, allocations: 16 kB / 0.4997 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003937/0.4478, allocations: 498.9 kB / 0.5002 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00233/0.4502, allocations: 0.5266 MB / 0.5007 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.4613, allocations: 7.041 MB / 0.5076 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.4634, allocations: 104 kB / 0.5077 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/0.4637, allocations: 108 kB / 0.5078 GB, free: 5.617 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.0008325/0.4645, allocations: 373.1 kB / 0.5082 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003079/0.4648, allocations: 138.3 kB / 0.5083 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007803/0.4726, allocations: 2.456 MB / 0.5107 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/0.4727, allocations: 20 kB / 0.5107 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.4727, allocations: 0 / 0.5107 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/0.4728, allocations: 15.91 kB / 0.5107 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.4832, allocations: 4.075 MB / 0.5147 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4833, allocations: 0 / 0.5147 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002173/0.4855, allocations: 387.5 kB / 0.5151 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003837/0.4893, allocations: 490.8 kB / 0.5155 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003564/0.4897, allocations: 55.98 kB / 0.5156 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/0.5015, allocations: 6.882 MB / 0.5223 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5016, allocations: 3.938 kB / 0.5223 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008556/0.5102, allocations: 3.149 MB / 0.5254 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005523/0.5107, allocations: 199.4 kB / 0.5256 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/0.511, allocations: 32 kB / 0.5256 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009741/0.5119, allocations: 75.8 kB / 0.5257 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000325/0.5123, allocations: 141.7 kB / 0.5258 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/0.5124, allocations: 72.44 kB / 0.5259 GB, free: 2.395 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000663/0.5131, allocations: 0.4923 MB / 0.5264 GB, free: 1.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5131, allocations: 0 / 0.5264 GB, free: 1.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00345/0.5166, allocations: 1.023 MB / 0.5274 GB, free: 0.8672 MB / 398.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.002025/0.5186, allocations: 1.116 MB / 0.5285 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003552/0.5222, allocations: 2.23 MB / 0.5306 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5222, allocations: 4 kB / 0.5306 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.5241, allocations: 1.385 MB / 0.532 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.5253, allocations: 260.8 kB / 0.5322 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005424/0.5308, allocations: 3.877 MB / 0.536 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008484/0.5316, allocations: 1.312 MB / 0.5373 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001654/0.5333, allocations: 355.3 kB / 0.5377 GB, free: 6.156 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005344/0.5338, allocations: 239.4 kB / 0.5379 GB, free: 5.922 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5339, allocations: 0 / 0.5379 GB, free: 5.922 MB / 414.1 MB Notification: Performance of Templates: time 0.05094/0.5848, allocations: 34.56 MB / 0.5716 GB, free: 3.473 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: