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.001289/0.001289, allocations: 100.1 kB / 15.88 MB, free: 8 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.00114/0.00114, allocations: 196.2 kB / 16.79 MB, free: 6.828 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.353/1.353, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1928/0.1928, allocations: 15.32 MB / 305.9 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.89 kB / 370.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09774, allocations: 53.61 MB / 423.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.01003/0.1078, allocations: 9.515 MB / 433.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2036/0.3114, allocations: 24.12 MB / 457.6 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001587/0.313, allocations: 42.06 kB / 457.6 MB, free: 36.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.3145, allocations: 457.1 kB / 458 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005532/0.3201, allocations: 1.887 MB / 459.9 MB, free: 35.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00775/0.3279, allocations: 2.641 MB / 462.6 MB, free: 34.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003066/0.3309, allocations: 2.362 MB / 464.9 MB, free: 33.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00148/0.3324, allocations: 1.209 MB / 466.1 MB, free: 32.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.334, allocations: 1.179 MB / 467.3 MB, free: 32.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.3357, allocations: 1.327 MB / 468.6 MB, free: 31.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.3361, allocations: 141.7 kB / 468.8 MB, free: 31.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008076/0.3442, allocations: 2.604 MB / 471.4 MB, free: 31.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006906/0.3449, allocations: 454.5 kB / 471.8 MB, free: 31.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001362/0.3463, allocations: 1.01 MB / 472.8 MB, free: 30.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005812/0.3521, allocations: 3.737 MB / 476.6 MB, free: 28.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3521, allocations: 0 / 476.6 MB, free: 28.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3521, allocations: 0 / 476.6 MB, free: 28.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.03e-05/0.3522, allocations: 3.938 kB / 476.6 MB, free: 28.91 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.005749/0.358, allocations: 2.652 MB / 479.2 MB, free: 27.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.358, allocations: 9.844 kB / 479.2 MB, free: 27.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001968/0.36, allocations: 413.6 kB / 479.6 MB, free: 27.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.3616, allocations: 0.9236 MB / 480.6 MB, free: 26.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.3618, allocations: 192.1 kB / 480.8 MB, free: 26.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003049/0.3621, allocations: 183.3 kB / 480.9 MB, free: 26.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003496/0.3656, allocations: 2.089 MB / 483 MB, free: 25.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.3657, allocations: 0 / 483 MB, free: 25.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/0.3658, allocations: 71.12 kB / 483.1 MB, free: 25.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.3659, allocations: 42.62 kB / 483.1 MB, free: 25.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004215/0.3701, allocations: 2.61 MB / 485.7 MB, free: 24.87 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.0113/0.3814, allocations: 6.658 MB / 492.4 MB, free: 20.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004847/0.3863, allocations: 3.131 MB / 495.5 MB, free: 19.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.3879, allocations: 0.9296 MB / 496.5 MB, free: 19.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01021/0.3981, allocations: 8.159 MB / 0.4928 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3982, allocations: 53.84 kB / 0.4928 GB, free: 12.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 2.976e-06/0.3982, allocations: 0 / 0.4928 GB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03009/0.4283, allocations: 6.992 MB / 0.4997 GB, free: 7.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.4283, allocations: 95.11 kB / 0.4998 GB, free: 6.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008204/0.4292, allocations: 0.7845 MB / 0.5005 GB, free: 6.121 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002389/0.4294, allocations: 57.7 kB / 0.5006 GB, free: 6.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.4297, allocations: 0.7405 MB / 0.5013 GB, free: 5.305 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003706/0.4301, allocations: 0.6084 MB / 0.5019 GB, free: 4.688 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/0.4305, allocations: 363.3 kB / 0.5023 GB, free: 4.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.112e-05/0.4306, allocations: 301.1 kB / 0.5025 GB, free: 4.027 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009235/0.4315, allocations: 0.6092 MB / 0.5031 GB, free: 3.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.4326, allocations: 1.137 MB / 0.5042 GB, free: 2.051 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.4347, allocations: 1.921 MB / 0.5061 GB, free: 15.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.4348, allocations: 7.938 kB / 0.5061 GB, free: 15.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007623/0.4424, allocations: 2.478 MB / 0.5085 GB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.4425, allocations: 12 kB / 0.5086 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.4425, allocations: 16 kB / 0.5086 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003999/0.4465, allocations: 471.5 kB / 0.509 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002484/0.449, allocations: 0.5227 MB / 0.5095 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/0.4593, allocations: 6.936 MB / 0.5163 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.4612, allocations: 103.9 kB / 0.5164 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002106/0.4614, allocations: 99.97 kB / 0.5165 GB, free: 4.727 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.0007865/0.4622, allocations: 381.1 kB / 0.5169 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003529/0.4626, allocations: 134.3 kB / 0.517 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007987/0.4705, allocations: 2.431 MB / 0.5194 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/0.4706, allocations: 20 kB / 0.5194 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.4706, allocations: 7.984 kB / 0.5194 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.621e-05/0.4706, allocations: 11.97 kB / 0.5194 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/0.481, allocations: 4.083 MB / 0.5234 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4811, allocations: 0 / 0.5234 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/0.4832, allocations: 395.5 kB / 0.5238 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004056/0.4873, allocations: 446.9 kB / 0.5242 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000344/0.4877, allocations: 63.97 kB / 0.5243 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009436/0.4971, allocations: 6.77 MB / 0.5309 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4972, allocations: 0 / 0.5309 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00864/0.5058, allocations: 3.131 MB / 0.5339 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000472/0.5063, allocations: 199.3 kB / 0.5341 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002276/0.5065, allocations: 39.94 kB / 0.5342 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000987/0.5075, allocations: 67.88 kB / 0.5342 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003367/0.5079, allocations: 141.7 kB / 0.5344 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.508, allocations: 71.91 kB / 0.5344 GB, free: 1.684 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006423/0.5087, allocations: 0.504 MB / 0.5349 GB, free: 1.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5087, allocations: 0 / 0.5349 GB, free: 1.168 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003499/0.5122, allocations: 1.046 MB / 0.5359 GB, free: 124 kB / 398.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.003245/0.5155, allocations: 1.145 MB / 0.5371 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004371/0.5198, allocations: 2.242 MB / 0.5392 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5199, allocations: 0 / 0.5392 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/0.522, allocations: 1.4 MB / 0.5406 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.5237, allocations: 274 kB / 0.5409 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005856/0.5296, allocations: 3.978 MB / 0.5448 GB, free: 6.938 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008546/0.5305, allocations: 1.269 MB / 0.546 GB, free: 5.637 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009638/0.5315, allocations: 318.1 kB / 0.5463 GB, free: 5.328 MB / 414.1 MB Notification: Performance of SimCode: time 1.094e-05/0.5315, allocations: 4 kB / 0.5463 GB, free: 5.324 MB / 414.1 MB Notification: Performance of Templates: time 0.2323/0.7638, allocations: 54.44 MB / 0.5995 GB, free: 134.7 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)