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.001215/0.001214, allocations: 92.16 kB / 16.02 MB, free: 80 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.001496/0.001497, allocations: 172.9 kB / 16.92 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.368/1.368, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1892/0.1892, allocations: 15.27 MB / 307.4 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003242, allocations: 8 kB / 372.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2928, allocations: 54.63 MB / 427.4 MB, free: 40.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.006795/0.2996, allocations: 9.04 MB / 436.4 MB, free: 36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01998/0.3197, allocations: 23.87 MB / 460.3 MB, free: 19.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.3213, allocations: 34.38 kB / 460.3 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.3225, allocations: 470.3 kB / 460.8 MB, free: 19.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005541/0.3281, allocations: 1.88 MB / 462.7 MB, free: 17.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007203/0.3353, allocations: 2.643 MB / 465.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002885/0.3382, allocations: 2.363 MB / 467.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001372/0.3396, allocations: 1.148 MB / 468.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001646/0.3413, allocations: 1.129 MB / 469.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002061/0.3434, allocations: 1.255 MB / 471.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004407/0.3438, allocations: 113.8 kB / 471.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007997/0.3518, allocations: 2.572 MB / 473.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007989/0.3527, allocations: 418.5 kB / 474.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00159/0.3543, allocations: 0.9899 MB / 475.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006555/0.3608, allocations: 3.693 MB / 479 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3609, allocations: 1.219 kB / 479 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3609, allocations: 0 / 479 MB, free: 11.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.826e-05/0.361, allocations: 1.281 kB / 479 MB, free: 11.22 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.006104/0.3671, allocations: 2.206 MB / 481.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3671, allocations: 9.656 kB / 481.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.3693, allocations: 421.7 kB / 481.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/0.371, allocations: 0.8964 MB / 482.5 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.3712, allocations: 192.3 kB / 482.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003753/0.3716, allocations: 181.8 kB / 482.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004025/0.3756, allocations: 2.086 MB / 485 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.3757, allocations: 0 / 485 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002141/0.3759, allocations: 74.84 kB / 485 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.24e-05/0.376, allocations: 43.72 kB / 485.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004809/0.3808, allocations: 2.61 MB / 487.7 MB, free: 7.383 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.01174/0.3926, allocations: 6.587 MB / 494.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004227/0.3968, allocations: 3.132 MB / 497.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.3985, allocations: 0.9251 MB / 498.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01107/0.4096, allocations: 7.987 MB / 0.4944 GB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.4097, allocations: 51.81 kB / 0.4945 GB, free: 5.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.196e-06/0.4097, allocations: 0 / 0.4945 GB, free: 5.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03298/0.4427, allocations: 7.069 MB / 0.5014 GB, free: 14.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.4428, allocations: 103.1 kB / 0.5015 GB, free: 14.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.4439, allocations: 0.7806 MB / 0.5023 GB, free: 13.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00026/0.4441, allocations: 53.7 kB / 0.5023 GB, free: 13.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/0.4447, allocations: 0.7405 MB / 0.503 GB, free: 12.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006186/0.4453, allocations: 0.6044 MB / 0.5036 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.4455, allocations: 161.6 kB / 0.5038 GB, free: 11.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.823e-05/0.4456, allocations: 305.1 kB / 0.5041 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.4468, allocations: 0.617 MB / 0.5047 GB, free: 10.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.4484, allocations: 1.137 MB / 0.5058 GB, free: 9.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00293/0.4514, allocations: 1.929 MB / 0.5077 GB, free: 7.246 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.4514, allocations: 4 kB / 0.5077 GB, free: 7.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008097/0.4595, allocations: 2.491 MB / 0.5101 GB, free: 4.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.4596, allocations: 12 kB / 0.5101 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.4596, allocations: 16.12 kB / 0.5101 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004441/0.464, allocations: 0.491 MB / 0.5106 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.4668, allocations: 0.5188 MB / 0.5111 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.4778, allocations: 6.987 MB / 0.5179 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.4797, allocations: 103.9 kB / 0.518 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002788/0.48, allocations: 112 kB / 0.5181 GB, free: 11.95 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.0007751/0.4808, allocations: 373.8 kB / 0.5185 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003178/0.4811, allocations: 134.3 kB / 0.5186 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008466/0.4896, allocations: 2.457 MB / 0.521 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/0.4896, allocations: 20 kB / 0.521 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.4896, allocations: 4 kB / 0.521 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-05/0.4897, allocations: 15.95 kB / 0.5211 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.5005, allocations: 4.098 MB / 0.5251 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.5005, allocations: 0 / 0.5251 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002221/0.5027, allocations: 395.5 kB / 0.5254 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004283/0.507, allocations: 486.8 kB / 0.5259 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002944/0.5074, allocations: 55.97 kB / 0.526 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/0.5174, allocations: 6.815 MB / 0.5326 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5175, allocations: 0 / 0.5326 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00992/0.5274, allocations: 3.155 MB / 0.5357 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006516/0.5281, allocations: 199.3 kB / 0.5359 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005809/0.5287, allocations: 35.94 kB / 0.5359 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.5301, allocations: 67.91 kB / 0.536 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/0.5306, allocations: 141.8 kB / 0.5361 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/0.5308, allocations: 67.97 kB / 0.5362 GB, free: 8.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007543/0.5315, allocations: 0.5001 MB / 0.5367 GB, free: 8.258 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5315, allocations: 0 / 0.5367 GB, free: 8.258 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003958/0.5355, allocations: 1.054 MB / 0.5377 GB, free: 7.203 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.003024/0.5385, allocations: 1.136 MB / 0.5388 GB, free: 6.059 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004299/0.5429, allocations: 2.253 MB / 0.541 GB, free: 3.754 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5429, allocations: 0 / 0.541 GB, free: 3.754 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00238/0.5453, allocations: 1.4 MB / 0.5424 GB, free: 2.309 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.5474, allocations: 276.4 kB / 0.5426 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00633/0.5537, allocations: 4.065 MB / 0.5466 GB, free: 13.92 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.5548, allocations: 1.281 MB / 0.5479 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.5558, allocations: 307.2 kB / 0.5482 GB, free: 12.31 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5559, allocations: 0 / 0.5482 GB, free: 12.31 MB / 430.1 MB Notification: Performance of Templates: time 0.2424/0.7982, allocations: 54.25 MB / 0.6011 GB, free: 136.3 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)