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.001884/0.001884, allocations: 111.4 kB / 15.99 MB, free: 5.914 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.00204/0.002041, allocations: 191.4 kB / 16.91 MB, free: 5.754 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.449/1.449, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08595/0.08595, allocations: 15.31 MB / 306 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00246/0.00246, allocations: 62.22 kB / 370.5 MB, free: 50.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09986, allocations: 53.61 MB / 424.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.0075/0.1074, allocations: 9.513 MB / 433.6 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02998/0.1374, allocations: 23.89 MB / 457.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.1394, allocations: 43.69 kB / 457.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.1412, allocations: 458.7 kB / 458 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006958/0.1482, allocations: 1.949 MB / 459.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008738/0.157, allocations: 2.685 MB / 462.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003792/0.1608, allocations: 2.43 MB / 465 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00209/0.1629, allocations: 1.406 MB / 466.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/0.1648, allocations: 1.27 MB / 467.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.1671, allocations: 1.374 MB / 469.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004274/0.1675, allocations: 216 kB / 469.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008024/0.1756, allocations: 2.726 MB / 472 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008424/0.1764, allocations: 0.518 MB / 472.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.178, allocations: 1.093 MB / 473.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00621/0.1842, allocations: 3.773 MB / 477.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1842, allocations: 4 kB / 477.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1842, allocations: 0 / 477.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.911e-05/0.1843, allocations: 0 / 477.4 MB, free: 8.777 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.005733/0.19, allocations: 2.654 MB / 480.1 MB, free: 6.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.1901, allocations: 15.97 kB / 480.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001913/0.192, allocations: 417.9 kB / 480.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.1936, allocations: 0.9241 MB / 481.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.1938, allocations: 195.5 kB / 481.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/0.1941, allocations: 184.3 kB / 481.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004075/0.1982, allocations: 2.093 MB / 483.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/0.1983, allocations: 0 / 483.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002002/0.1985, allocations: 68 kB / 484 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.779e-05/0.1985, allocations: 43.94 kB / 484 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004495/0.203, allocations: 2.612 MB / 486.6 MB, free: 15.45 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.01209/0.2151, allocations: 6.638 MB / 493.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005295/0.2204, allocations: 3.125 MB / 496.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/0.2221, allocations: 0.9251 MB / 497.3 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01242/0.2345, allocations: 8.158 MB / 0.4936 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.324e-05/0.2346, allocations: 55.81 kB / 0.4937 GB, free: 11.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=144): time 2.795e-06/0.2346, allocations: 0 / 0.4937 GB, free: 11.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=180): time 0.03437/0.269, allocations: 6.99 MB / 0.5005 GB, free: 4.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.2691, allocations: 95.11 kB / 0.5006 GB, free: 3.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.2702, allocations: 0.7845 MB / 0.5013 GB, free: 3.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002251/0.2705, allocations: 57.7 kB / 0.5014 GB, free: 3.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005849/0.271, allocations: 0.7328 MB / 0.5021 GB, free: 2.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006484/0.2717, allocations: 0.6122 MB / 0.5027 GB, free: 1.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000574/0.2723, allocations: 363.4 kB / 0.5031 GB, free: 1.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2724, allocations: 301.1 kB / 0.5033 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.2736, allocations: 0.6209 MB / 0.504 GB, free: 432 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1691/0.4427, allocations: 1.124 MB / 0.505 GB, free: 79.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002857/0.4456, allocations: 1.922 MB / 0.5069 GB, free: 79.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.4457, allocations: 5.312 kB / 0.5069 GB, free: 79.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007827/0.4535, allocations: 2.472 MB / 0.5093 GB, free: 78.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.4536, allocations: 15.09 kB / 0.5094 GB, free: 78.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.4536, allocations: 16.42 kB / 0.5094 GB, free: 78.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004337/0.4579, allocations: 469.9 kB / 0.5098 GB, free: 78.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/0.4605, allocations: 0.5229 MB / 0.5103 GB, free: 78.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.4707, allocations: 7.681 MB / 0.5178 GB, free: 71.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/0.4725, allocations: 103.6 kB / 0.5179 GB, free: 71.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.4727, allocations: 107.9 kB / 0.518 GB, free: 71.56 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.0007172/0.4735, allocations: 366.2 kB / 0.5184 GB, free: 71.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003596/0.4738, allocations: 134.2 kB / 0.5185 GB, free: 71.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008547/0.4824, allocations: 2.442 MB / 0.5209 GB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.427e-05/0.4825, allocations: 18.59 kB / 0.5209 GB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.4825, allocations: 4.719 kB / 0.5209 GB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.01e-05/0.4825, allocations: 12.55 kB / 0.5209 GB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009736/0.4923, allocations: 4.074 MB / 0.5249 GB, free: 68.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.4923, allocations: 0 / 0.5249 GB, free: 68.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002003/0.4943, allocations: 392.8 kB / 0.5253 GB, free: 68.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004211/0.4985, allocations: 455.9 kB / 0.5257 GB, free: 68.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/0.4987, allocations: 59.02 kB / 0.5258 GB, free: 68.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00846/0.5072, allocations: 7.518 MB / 0.5331 GB, free: 61.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5072, allocations: 0 / 0.5331 GB, free: 61.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008057/0.5153, allocations: 3.135 MB / 0.5362 GB, free: 60.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003358/0.5157, allocations: 205.4 kB / 0.5364 GB, free: 59.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.5159, allocations: 30.81 kB / 0.5364 GB, free: 59.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009735/0.5168, allocations: 70.58 kB / 0.5365 GB, free: 59.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003021/0.5172, allocations: 139.4 kB / 0.5366 GB, free: 59.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5173, allocations: 75.09 kB / 0.5367 GB, free: 59.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005522/0.5178, allocations: 0.4988 MB / 0.5372 GB, free: 59.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5179, allocations: 0 / 0.5372 GB, free: 59.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00272/0.5206, allocations: 1.057 MB / 0.5382 GB, free: 58.74 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.001788/0.5224, allocations: 1.148 MB / 0.5393 GB, free: 57.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004271/0.5267, allocations: 2.368 MB / 0.5416 GB, free: 55.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5267, allocations: 0 / 0.5416 GB, free: 55.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.5283, allocations: 1.395 MB / 0.543 GB, free: 54.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.5298, allocations: 312.7 kB / 0.5433 GB, free: 53.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004713/0.5345, allocations: 3.969 MB / 0.5472 GB, free: 49.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.5351, allocations: 1.281 MB / 0.5484 GB, free: 48.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000724/0.5358, allocations: 315.2 kB / 0.5487 GB, free: 48.11 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5359, allocations: 0 / 0.5487 GB, free: 48.11 MB / 382.1 MB Notification: Performance of Templates: time 0.0487/0.5846, allocations: 54.45 MB / 0.6019 GB, free: 9.723 MB / 398.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)