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.001328/0.001328, allocations: 111 kB / 16.37 MB, free: 6.352 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.001322/0.001322, allocations: 192.2 kB / 17.31 MB, free: 5.895 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.248/1.248, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0772/0.0772, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 55.91 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08021/0.08137, allocations: 53.62 MB / 479.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.007502/0.0889, allocations: 8.382 MB / 487.8 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02195/0.1109, allocations: 24.16 MB / 0.5 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000921/0.1118, allocations: 23.88 kB / 0.5 GB, free: 5.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.113, allocations: 0.504 MB / 0.5005 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.1176, allocations: 2.161 MB / 0.5026 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1924/0.31, allocations: 2.992 MB / 0.5055 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002918/0.313, allocations: 2.437 MB / 0.5079 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.3146, allocations: 1.405 MB / 0.5093 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001403/0.316, allocations: 1.211 MB / 0.5104 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.3176, allocations: 1.344 MB / 0.5117 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003588/0.318, allocations: 215.7 kB / 0.512 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007764/0.3257, allocations: 2.655 MB / 0.5145 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007489/0.3265, allocations: 0.5094 MB / 0.515 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.3281, allocations: 1.075 MB / 0.5161 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009223/0.3373, allocations: 5.063 MB / 0.521 GB, free: 4.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3373, allocations: 1.531 kB / 0.521 GB, free: 4.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3373, allocations: 0 / 0.521 GB, free: 4.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.3374, allocations: 4 kB / 0.521 GB, free: 4.531 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.004961/0.3423, allocations: 2.646 MB / 0.5236 GB, free: 3.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3424, allocations: 8.969 kB / 0.5236 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.3442, allocations: 411.5 kB / 0.524 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.3455, allocations: 0.9639 MB / 0.525 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.3457, allocations: 189.6 kB / 0.5251 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002678/0.3459, allocations: 183.7 kB / 0.5253 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/0.3489, allocations: 2.091 MB / 0.5274 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/0.3489, allocations: 6.375 kB / 0.5274 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001707/0.3491, allocations: 71.62 kB / 0.5274 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.774e-05/0.3491, allocations: 42.56 kB / 0.5275 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003276/0.3524, allocations: 2.606 MB / 0.53 GB, free: 0.6836 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.009062/0.3615, allocations: 6.635 MB / 0.5365 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004213/0.3657, allocations: 3.135 MB / 0.5396 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.367, allocations: 0.9173 MB / 0.5405 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.3772, allocations: 8.134 MB / 0.5484 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.3773, allocations: 50.03 kB / 0.5485 GB, free: 1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=144): time 2.655e-06/0.3773, allocations: 0 / 0.5485 GB, free: 1 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.02714/0.4044, allocations: 7.008 MB / 0.5553 GB, free: 9.879 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.4045, allocations: 96.89 kB / 0.5554 GB, free: 9.766 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008622/0.4054, allocations: 0.7923 MB / 0.5562 GB, free: 8.949 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.4055, allocations: 53.7 kB / 0.5562 GB, free: 8.891 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003941/0.4059, allocations: 0.7353 MB / 0.5569 GB, free: 8.148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004114/0.4063, allocations: 0.6067 MB / 0.5575 GB, free: 7.547 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004621/0.4068, allocations: 364.5 kB / 0.5579 GB, free: 7.184 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.922e-05/0.4069, allocations: 301.1 kB / 0.5582 GB, free: 6.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.4079, allocations: 0.6209 MB / 0.5588 GB, free: 6.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.4092, allocations: 1.139 MB / 0.5599 GB, free: 4.906 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.4116, allocations: 1.911 MB / 0.5617 GB, free: 2.848 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4116, allocations: 4 kB / 0.5617 GB, free: 2.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.006601/0.4182, allocations: 2.471 MB / 0.5642 GB, free: 460 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.4183, allocations: 8 kB / 0.5642 GB, free: 452 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.4183, allocations: 17.31 kB / 0.5642 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003528/0.4218, allocations: 478.3 kB / 0.5646 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002154/0.424, allocations: 0.5259 MB / 0.5652 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009522/0.4335, allocations: 7.677 MB / 0.5727 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.4348, allocations: 64 kB / 0.5727 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.435, allocations: 99.97 kB / 0.5728 GB, free: 7.113 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.000658/0.4356, allocations: 375.3 kB / 0.5732 GB, free: 6.766 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002733/0.4359, allocations: 134.3 kB / 0.5733 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006912/0.4428, allocations: 2.435 MB / 0.5757 GB, free: 4.184 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.4429, allocations: 20 kB / 0.5757 GB, free: 4.164 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4429, allocations: 3.984 kB / 0.5757 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.4429, allocations: 11.97 kB / 0.5757 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008556/0.4515, allocations: 4.072 MB / 0.5797 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.4515, allocations: 0 / 0.5797 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/0.4534, allocations: 395.6 kB / 0.5801 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00349/0.4569, allocations: 452.9 kB / 0.5805 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.457, allocations: 59.97 kB / 0.5806 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008776/0.4658, allocations: 7.516 MB / 0.5879 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4658, allocations: 3.938 kB / 0.5879 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007382/0.4732, allocations: 3.14 MB / 0.591 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.4735, allocations: 203.3 kB / 0.5912 GB, free: 3.781 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.4737, allocations: 32 kB / 0.5912 GB, free: 3.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008052/0.4745, allocations: 39.98 kB / 0.5912 GB, free: 3.711 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.4748, allocations: 139.1 kB / 0.5914 GB, free: 3.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.4749, allocations: 67.97 kB / 0.5914 GB, free: 3.512 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005925/0.4755, allocations: 0.5087 MB / 0.5919 GB, free: 2.992 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4755, allocations: 4 kB / 0.5919 GB, free: 2.988 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003017/0.4785, allocations: 1.05 MB / 0.5929 GB, free: 1.938 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.001799/0.4803, allocations: 1.15 MB / 0.5941 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003262/0.4836, allocations: 2.258 MB / 0.5963 GB, free: 14.69 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4836, allocations: 0 / 0.5963 GB, free: 14.69 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.4854, allocations: 1.393 MB / 0.5976 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.4867, allocations: 316.5 kB / 0.5979 GB, free: 12.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0045/0.4913, allocations: 3.169 MB / 0.601 GB, free: 9.789 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007246/0.492, allocations: 1.28 MB / 0.6023 GB, free: 8.473 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006467/0.4926, allocations: 307.2 kB / 0.6026 GB, free: 8.172 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4927, allocations: 3.938 kB / 0.6026 GB, free: 8.168 MB / 462.1 MB Notification: Performance of Templates: time 0.04836/0.541, allocations: 54.33 MB / 0.6556 GB, free: 1.922 MB / 0.4981 GB 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)