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.001311/0.001311, allocations: 110.7 kB / 16.37 MB, free: 6.004 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.001296/0.001296, allocations: 195.8 kB / 17.31 MB, free: 5.613 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09215/0.09215, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 66.88 kB / 371.8 MB, free: 50.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09919, allocations: 53.61 MB / 425.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.006537/0.1058, allocations: 8.391 MB / 433.8 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02436/0.1302, allocations: 24.17 MB / 457.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.1314, allocations: 23.88 kB / 457.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.1328, allocations: 0.504 MB / 458.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005764/0.1386, allocations: 2.145 MB / 460.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007528/0.1462, allocations: 3.017 MB / 463.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003613/0.1498, allocations: 2.434 MB / 466 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001872/0.1517, allocations: 1.403 MB / 467.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.1531, allocations: 1.208 MB / 468.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001681/0.1548, allocations: 1.347 MB / 470 MB, free: 440 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003194/0.1551, allocations: 216 kB / 470.2 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007517/0.1626, allocations: 2.66 MB / 472.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006946/0.1634, allocations: 0.5103 MB / 473.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.1647, allocations: 1.077 MB / 474.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01162/0.1763, allocations: 5.061 MB / 479.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1763, allocations: 0 / 479.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.18e-05/0.1764, allocations: 4 kB / 479.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.882e-05/0.1764, allocations: 0 / 479.5 MB, free: 6.879 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.005252/0.1817, allocations: 2.65 MB / 482.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1817, allocations: 12.03 kB / 482.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001781/0.1835, allocations: 406 kB / 482.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001833/0.1854, allocations: 0.9631 MB / 483.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.1856, allocations: 191.5 kB / 483.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002987/0.1859, allocations: 184.2 kB / 483.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.1894, allocations: 2.089 MB / 486 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.1895, allocations: 7.938 kB / 486 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.1897, allocations: 72 kB / 486.1 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.1897, allocations: 43.98 kB / 486.1 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004189/0.1939, allocations: 2.604 MB / 488.7 MB, free: 13.53 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.01111/0.2051, allocations: 6.615 MB / 495.3 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004698/0.2098, allocations: 3.131 MB / 498.5 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.2112, allocations: 0.9212 MB / 499.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01088/0.2221, allocations: 8.131 MB / 0.4956 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.2221, allocations: 55.8 kB / 0.4957 GB, free: 9.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=144): time 3.758e-06/0.2222, allocations: 3.984 kB / 0.4957 GB, free: 9.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=180): time 0.02962/0.2518, allocations: 6.982 MB / 0.5025 GB, free: 2.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.2519, allocations: 99.11 kB / 0.5026 GB, free: 2.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009789/0.2529, allocations: 0.7883 MB / 0.5034 GB, free: 1.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001931/0.2531, allocations: 53.7 kB / 0.5034 GB, free: 1.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005033/0.2536, allocations: 0.7444 MB / 0.5041 GB, free: 456 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2084/0.462, allocations: 0.5985 MB / 0.5047 GB, free: 79.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007163/0.4627, allocations: 362.1 kB / 0.5051 GB, free: 79.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.4628, allocations: 303.3 kB / 0.5054 GB, free: 79.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.4639, allocations: 0.6202 MB / 0.506 GB, free: 79.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.4652, allocations: 1.128 MB / 0.5071 GB, free: 78.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.4678, allocations: 1.925 MB / 0.509 GB, free: 78.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.4679, allocations: 3.938 kB / 0.509 GB, free: 78.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007232/0.4751, allocations: 2.463 MB / 0.5114 GB, free: 77.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.4752, allocations: 11.69 kB / 0.5114 GB, free: 77.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.4752, allocations: 15.44 kB / 0.5114 GB, free: 77.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003872/0.4791, allocations: 479.8 kB / 0.5118 GB, free: 77.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002525/0.4816, allocations: 0.5178 MB / 0.5124 GB, free: 77.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00924/0.4909, allocations: 7.681 MB / 0.5199 GB, free: 70.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.4925, allocations: 61.67 kB / 0.5199 GB, free: 70.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.4927, allocations: 105 kB / 0.52 GB, free: 70.36 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.0007427/0.4935, allocations: 369.7 kB / 0.5204 GB, free: 70.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/0.4938, allocations: 133.5 kB / 0.5205 GB, free: 70.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007746/0.5015, allocations: 2.445 MB / 0.5229 GB, free: 69.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.603e-05/0.5016, allocations: 22.22 kB / 0.5229 GB, free: 69.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/0.5016, allocations: 2.594 kB / 0.5229 GB, free: 69.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.5016, allocations: 11.3 kB / 0.5229 GB, free: 69.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009221/0.5109, allocations: 4.076 MB / 0.5269 GB, free: 67.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.5109, allocations: 1.734 kB / 0.5269 GB, free: 67.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/0.5127, allocations: 394.7 kB / 0.5273 GB, free: 67.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003451/0.5162, allocations: 458.6 kB / 0.5277 GB, free: 67.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/0.5164, allocations: 50.28 kB / 0.5278 GB, free: 67.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008035/0.5244, allocations: 7.52 MB / 0.5351 GB, free: 60.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5245, allocations: 0 / 0.5351 GB, free: 60.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007329/0.5318, allocations: 3.141 MB / 0.5382 GB, free: 58.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003196/0.5322, allocations: 193.5 kB / 0.5384 GB, free: 58.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.5324, allocations: 34.31 kB / 0.5384 GB, free: 58.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008137/0.5332, allocations: 32.5 kB / 0.5384 GB, free: 58.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002903/0.5335, allocations: 146.6 kB / 0.5386 GB, free: 58.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.5336, allocations: 64.72 kB / 0.5386 GB, free: 58.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000504/0.5341, allocations: 0.5087 MB / 0.5391 GB, free: 57.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5341, allocations: 0 / 0.5391 GB, free: 57.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00279/0.5369, allocations: 1.062 MB / 0.5402 GB, free: 57 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.001767/0.5387, allocations: 1.147 MB / 0.5413 GB, free: 56.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003206/0.5419, allocations: 2.26 MB / 0.5435 GB, free: 53.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5419, allocations: 0 / 0.5435 GB, free: 53.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/0.5436, allocations: 1.389 MB / 0.5448 GB, free: 52.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.545, allocations: 315.2 kB / 0.5451 GB, free: 52.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004208/0.5492, allocations: 3.155 MB / 0.5482 GB, free: 48.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.5498, allocations: 1.277 MB / 0.5495 GB, free: 47.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001162/0.5509, allocations: 342.7 kB / 0.5498 GB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.5514, allocations: 251.2 kB / 0.55 GB, free: 47.02 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5514, allocations: 0 / 0.55 GB, free: 47.02 MB / 382.1 MB Notification: Performance of Templates: time 0.04228/0.5937, allocations: 37.53 MB / 0.5867 GB, free: 9.691 MB / 382.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.WaterSelfIonization.pipe 2>&1)