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.009425/0.009425, allocations: 100.6 kB / 15.73 MB, free: 5.562 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.002014/0.002014, allocations: 198.4 kB / 16.67 MB, free: 5.504 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.47/1.47, allocations: 222.9 MB / 240.4 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.1019/0.1019, allocations: 15.3 MB / 305.8 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 60.12 kB / 425.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1124, allocations: 53.61 MB / 478.8 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.01041/0.1228, allocations: 8.389 MB / 487.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02723/0.1501, allocations: 24.16 MB / 0.4993 GB, free: 5.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.1517, allocations: 19.88 kB / 0.4994 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.1531, allocations: 0.5079 MB / 0.4999 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00615/0.1593, allocations: 2.161 MB / 0.502 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.263/0.4223, allocations: 2.999 MB / 0.5049 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004324/0.4267, allocations: 2.43 MB / 0.5073 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002389/0.4291, allocations: 1.411 MB / 0.5087 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001882/0.431, allocations: 1.21 MB / 0.5098 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002114/0.4331, allocations: 1.346 MB / 0.5111 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000383/0.4335, allocations: 216.6 kB / 0.5114 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008534/0.4421, allocations: 2.657 MB / 0.5139 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008343/0.4429, allocations: 0.5056 MB / 0.5144 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001851/0.4448, allocations: 1.078 MB / 0.5155 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.4586, allocations: 5.082 MB / 0.5205 GB, free: 4.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4586, allocations: 0 / 0.5205 GB, free: 4.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.4586, allocations: 0 / 0.5205 GB, free: 4.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.071e-05/0.4587, allocations: 1.406 kB / 0.5205 GB, free: 4.676 MB / 382.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.007142/0.4658, allocations: 2.646 MB / 0.523 GB, free: 3.258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.4659, allocations: 9.094 kB / 0.5231 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002053/0.468, allocations: 413 kB / 0.5234 GB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.4699, allocations: 0.9622 MB / 0.5244 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.47, allocations: 190.1 kB / 0.5246 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003048/0.4704, allocations: 184.8 kB / 0.5247 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003435/0.4738, allocations: 2.091 MB / 0.5268 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.773e-05/0.4738, allocations: 0 / 0.5268 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001817/0.474, allocations: 70.75 kB / 0.5269 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.043e-05/0.4741, allocations: 42.66 kB / 0.5269 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003701/0.4778, allocations: 2.608 MB / 0.5294 GB, free: 0.793 MB / 382.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.009965/0.4878, allocations: 6.634 MB / 0.5359 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004313/0.4921, allocations: 3.139 MB / 0.539 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.4935, allocations: 0.9251 MB / 0.5399 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.505, allocations: 8.13 MB / 0.5478 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.505, allocations: 43.88 kB / 0.5479 GB, free: 1.137 MB / 398.1 MB Notification: Performance of pre-optimization done (n=144): time 3.056e-06/0.5051, allocations: 0 / 0.5479 GB, free: 1.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.02903/0.5341, allocations: 7.005 MB / 0.5547 GB, free: 10.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.5342, allocations: 99.11 kB / 0.5548 GB, free: 9.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.5352, allocations: 0.7844 MB / 0.5556 GB, free: 9.094 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001623/0.5354, allocations: 57.7 kB / 0.5556 GB, free: 9.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004756/0.5359, allocations: 0.7349 MB / 0.5563 GB, free: 8.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005718/0.5364, allocations: 0.6103 MB / 0.5569 GB, free: 7.684 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005161/0.537, allocations: 364.5 kB / 0.5573 GB, free: 7.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.5371, allocations: 301.1 kB / 0.5576 GB, free: 7.023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.5381, allocations: 0.617 MB / 0.5582 GB, free: 6.402 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.5395, allocations: 1.128 MB / 0.5593 GB, free: 5.055 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/0.5422, allocations: 1.928 MB / 0.5612 GB, free: 2.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.407e-06/0.5423, allocations: 7.938 kB / 0.5612 GB, free: 2.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007384/0.5497, allocations: 2.469 MB / 0.5636 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.5497, allocations: 12 kB / 0.5636 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.5498, allocations: 16 kB / 0.5636 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003699/0.5535, allocations: 478.9 kB / 0.5641 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/0.5562, allocations: 0.5124 MB / 0.5646 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.5674, allocations: 7.683 MB / 0.5721 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.5692, allocations: 63.98 kB / 0.5721 GB, free: 7.352 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000407/0.5697, allocations: 108 kB / 0.5722 GB, free: 7.246 MB / 430.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.0008623/0.5705, allocations: 374.1 kB / 0.5726 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004027/0.5709, allocations: 134.3 kB / 0.5727 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007426/0.5784, allocations: 2.442 MB / 0.5751 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/0.5784, allocations: 20 kB / 0.5751 GB, free: 4.293 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.5784, allocations: 0 / 0.5751 GB, free: 4.293 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/0.5785, allocations: 7.969 kB / 0.5751 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/0.5885, allocations: 4.068 MB / 0.5791 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.5886, allocations: 4 kB / 0.5791 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00243/0.591, allocations: 393.6 kB / 0.5795 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003691/0.5947, allocations: 454.9 kB / 0.5799 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002988/0.5951, allocations: 51.97 kB / 0.58 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009652/0.6047, allocations: 7.525 MB / 0.5873 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6048, allocations: 0 / 0.5873 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008122/0.6129, allocations: 3.138 MB / 0.5904 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004566/0.6134, allocations: 198.2 kB / 0.5906 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.6136, allocations: 43.94 kB / 0.5906 GB, free: 3.887 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008381/0.6144, allocations: 43.92 kB / 0.5906 GB, free: 3.844 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003241/0.6147, allocations: 133.8 kB / 0.5908 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.6149, allocations: 67.97 kB / 0.5908 GB, free: 3.648 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000807/0.6157, allocations: 0.504 MB / 0.5913 GB, free: 3.133 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6157, allocations: 4 kB / 0.5913 GB, free: 3.129 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005169/0.6209, allocations: 1.054 MB / 0.5924 GB, free: 2.074 MB / 446.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.003377/0.6243, allocations: 1.154 MB / 0.5935 GB, free: 1.062 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.6286, allocations: 2.253 MB / 0.5957 GB, free: 14.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.6286, allocations: 0 / 0.5957 GB, free: 14.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/0.6309, allocations: 1.395 MB / 0.5971 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.6328, allocations: 313.1 kB / 0.5974 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005274/0.6381, allocations: 3.126 MB / 0.6004 GB, free: 9.977 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008576/0.6389, allocations: 1.286 MB / 0.6017 GB, free: 8.652 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.6403, allocations: 347 kB / 0.602 GB, free: 8.309 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005548/0.6408, allocations: 243.2 kB / 0.6022 GB, free: 8.07 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6409, allocations: 3.938 kB / 0.6022 GB, free: 8.066 MB / 462.1 MB Notification: Performance of Templates: time 0.06214/0.703, allocations: 38.51 MB / 0.6398 GB, free: 1.82 MB / 494.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)