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.001667/0.001667, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002133/0.002133, allocations: 195.8 kB / 16.26 MB, free: 6.621 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.529/1.529, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2178/0.2178, allocations: 15.32 MB / 305.4 MB, free: 15.35 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 59.91 kB / 369.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1075, allocations: 53.6 MB / 423.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.01088/0.1184, allocations: 9.527 MB / 433 MB, free: 5.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1973/0.3158, allocations: 23.87 MB / 456.8 MB, free: 36.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.3172, allocations: 42.69 kB / 456.9 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.3185, allocations: 460.5 kB / 457.3 MB, free: 36.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004973/0.3235, allocations: 1.933 MB / 459.3 MB, free: 35.15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007749/0.3313, allocations: 2.692 MB / 461.9 MB, free: 34.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00346/0.3348, allocations: 2.441 MB / 464.4 MB, free: 33.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.3364, allocations: 1.401 MB / 465.8 MB, free: 32.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001587/0.338, allocations: 1.275 MB / 467.1 MB, free: 31.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/0.3395, allocations: 1.373 MB / 468.4 MB, free: 31.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002631/0.3398, allocations: 214.5 kB / 468.6 MB, free: 31.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007708/0.3475, allocations: 2.724 MB / 471.4 MB, free: 30.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005978/0.3481, allocations: 0.5253 MB / 471.9 MB, free: 30.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.3492, allocations: 1.087 MB / 473 MB, free: 29.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009602/0.3589, allocations: 4.851 MB / 477.8 MB, free: 27.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3589, allocations: 5.125 kB / 477.8 MB, free: 27.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3589, allocations: 0 / 477.8 MB, free: 27.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.605e-05/0.3589, allocations: 0 / 477.8 MB, free: 27.75 MB / 366.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.005121/0.3641, allocations: 2.647 MB / 480.5 MB, free: 26.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3641, allocations: 12.88 kB / 480.5 MB, free: 26.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/0.366, allocations: 415.7 kB / 480.9 MB, free: 26.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.3675, allocations: 0.9236 MB / 481.8 MB, free: 25.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.3676, allocations: 190.5 kB / 482 MB, free: 25.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.3679, allocations: 183.8 kB / 482.2 MB, free: 25.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00342/0.3713, allocations: 2.093 MB / 484.3 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.3714, allocations: 5.156 kB / 484.3 MB, free: 24.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/0.3716, allocations: 70.53 kB / 484.4 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-05/0.3716, allocations: 42.22 kB / 484.4 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004068/0.3757, allocations: 2.61 MB / 487 MB, free: 23.7 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.01064/0.3863, allocations: 6.653 MB / 493.7 MB, free: 19.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004405/0.3908, allocations: 3.128 MB / 496.8 MB, free: 18.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.392, allocations: 0.9218 MB / 497.7 MB, free: 17.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009369/0.4014, allocations: 8.166 MB / 0.494 GB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.4015, allocations: 45.56 kB / 0.4941 GB, free: 11.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.116e-06/0.4015, allocations: 0 / 0.4941 GB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03047/0.432, allocations: 6.995 MB / 0.5009 GB, free: 5.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.432, allocations: 95.11 kB / 0.501 GB, free: 5.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008326/0.4329, allocations: 0.7845 MB / 0.5018 GB, free: 4.266 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002664/0.4332, allocations: 57.7 kB / 0.5018 GB, free: 4.203 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.4334, allocations: 0.7366 MB / 0.5025 GB, free: 3.453 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000367/0.4338, allocations: 0.6045 MB / 0.5031 GB, free: 2.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004327/0.4343, allocations: 359.3 kB / 0.5035 GB, free: 2.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.283e-05/0.4343, allocations: 313.1 kB / 0.5038 GB, free: 2.172 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008795/0.4352, allocations: 0.617 MB / 0.5044 GB, free: 1.551 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.4363, allocations: 1.133 MB / 0.5055 GB, free: 196 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002927/0.4392, allocations: 1.917 MB / 0.5073 GB, free: 14.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.4392, allocations: 11.88 kB / 0.5074 GB, free: 14.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008053/0.4473, allocations: 2.467 MB / 0.5098 GB, free: 11.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.4474, allocations: 12.22 kB / 0.5098 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/0.4474, allocations: 20 kB / 0.5098 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004524/0.4519, allocations: 478.8 kB / 0.5102 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/0.4545, allocations: 0.5149 MB / 0.5108 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/0.4666, allocations: 7.683 MB / 0.5183 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.4686, allocations: 103.9 kB / 0.5184 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/0.4688, allocations: 99.97 kB / 0.5184 GB, free: 2.105 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.0008504/0.4697, allocations: 377.1 kB / 0.5188 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000353/0.47, allocations: 138.3 kB / 0.5189 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008422/0.4784, allocations: 2.441 MB / 0.5213 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.183e-05/0.4785, allocations: 20 kB / 0.5213 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.4785, allocations: 4 kB / 0.5213 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-05/0.4786, allocations: 7.969 kB / 0.5214 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/0.4898, allocations: 4.083 MB / 0.5253 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.4898, allocations: 0 / 0.5253 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002083/0.4919, allocations: 391.5 kB / 0.5257 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004003/0.4959, allocations: 466.8 kB / 0.5262 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/0.4962, allocations: 47.98 kB / 0.5262 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.5072, allocations: 7.514 MB / 0.5335 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5072, allocations: 4.031 kB / 0.5335 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008797/0.516, allocations: 3.127 MB / 0.5366 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004541/0.5165, allocations: 195.3 kB / 0.5368 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.5167, allocations: 35.98 kB / 0.5368 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009925/0.5177, allocations: 71.81 kB / 0.5369 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003387/0.518, allocations: 149.7 kB / 0.537 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.5182, allocations: 63.97 kB / 0.5371 GB, free: 14.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00071/0.5189, allocations: 0.5079 MB / 0.5376 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5189, allocations: 0 / 0.5376 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003199/0.5221, allocations: 1.058 MB / 0.5386 GB, free: 12.73 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.002203/0.5243, allocations: 1.136 MB / 0.5397 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005025/0.5294, allocations: 2.37 MB / 0.542 GB, free: 9.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5294, allocations: 4 kB / 0.542 GB, free: 9.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002204/0.5316, allocations: 1.389 MB / 0.5434 GB, free: 7.723 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.5332, allocations: 304.5 kB / 0.5437 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006146/0.5394, allocations: 3.929 MB / 0.5475 GB, free: 3.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.5404, allocations: 1.273 MB / 0.5488 GB, free: 2.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001604/0.542, allocations: 359.3 kB / 0.5491 GB, free: 1.805 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000586/0.5426, allocations: 245.5 kB / 0.5494 GB, free: 1.574 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5426, allocations: 0 / 0.5494 GB, free: 1.574 MB / 414.1 MB Notification: Performance of Templates: time 0.05953/0.6022, allocations: 37.39 MB / 0.5859 GB, free: 12.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)