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.001683/0.001682, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001856/0.001856, allocations: 187 kB / 17.34 MB, free: 5.762 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.362/1.362, 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.08455/0.08455, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.91 kB / 425.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 53.6 MB / 479.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.008665/0.1115, allocations: 8.392 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02662/0.1381, allocations: 24.16 MB / 0.5 GB, free: 5.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001595/0.1398, allocations: 19.88 kB / 0.5 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.1414, allocations: 0.5079 MB / 0.5005 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006492/0.1479, allocations: 2.153 MB / 0.5026 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.241/0.3889, allocations: 2.998 MB / 0.5056 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004242/0.3932, allocations: 2.44 MB / 0.5079 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00199/0.3952, allocations: 1.408 MB / 0.5093 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.3972, allocations: 1.208 MB / 0.5105 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002357/0.3996, allocations: 1.346 MB / 0.5118 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004578/0.4, allocations: 215.3 kB / 0.512 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009299/0.4094, allocations: 2.655 MB / 0.5146 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009203/0.4103, allocations: 0.5124 MB / 0.5151 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00214/0.4125, allocations: 1.077 MB / 0.5162 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01318/0.4257, allocations: 5.081 MB / 0.5211 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4257, allocations: 4.172 kB / 0.5211 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4257, allocations: 0 / 0.5211 GB, free: 4.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.018e-05/0.4258, allocations: 0 / 0.5211 GB, free: 4.496 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.007182/0.433, allocations: 2.643 MB / 0.5237 GB, free: 3.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.433, allocations: 9.312 kB / 0.5237 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002084/0.4351, allocations: 409 kB / 0.5241 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.4369, allocations: 0.9662 MB / 0.5251 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.4371, allocations: 191.4 kB / 0.5252 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002891/0.4374, allocations: 183.3 kB / 0.5254 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0033/0.4407, allocations: 2.087 MB / 0.5274 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.468e-05/0.4408, allocations: 3.75 kB / 0.5275 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/0.4409, allocations: 78.45 kB / 0.5275 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.952e-05/0.441, allocations: 42.62 kB / 0.5276 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003551/0.4446, allocations: 2.605 MB / 0.5301 GB, free: 0.6406 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.01096/0.4555, allocations: 6.638 MB / 0.5366 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004884/0.4604, allocations: 3.132 MB / 0.5397 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.4619, allocations: 0.9212 MB / 0.5406 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.4731, allocations: 8.137 MB / 0.5485 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.4732, allocations: 53.56 kB / 0.5485 GB, free: 1.016 MB / 398.1 MB Notification: Performance of pre-optimization done (n=144): time 3.446e-06/0.4732, allocations: 0 / 0.5485 GB, free: 1.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.02912/0.5024, allocations: 7.011 MB / 0.5554 GB, free: 9.898 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.5025, allocations: 95.11 kB / 0.5555 GB, free: 9.785 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.5035, allocations: 0.7883 MB / 0.5563 GB, free: 8.973 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002435/0.5038, allocations: 61.08 kB / 0.5563 GB, free: 8.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004868/0.5043, allocations: 0.7324 MB / 0.557 GB, free: 8.168 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005774/0.5049, allocations: 0.6116 MB / 0.5576 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000503/0.5054, allocations: 359.3 kB / 0.558 GB, free: 7.203 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.5055, allocations: 305.1 kB / 0.5583 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/0.5066, allocations: 0.617 MB / 0.5589 GB, free: 6.281 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.508, allocations: 1.135 MB / 0.56 GB, free: 4.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002694/0.5108, allocations: 1.913 MB / 0.5618 GB, free: 2.867 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.5108, allocations: 7.938 kB / 0.5618 GB, free: 2.859 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007189/0.518, allocations: 2.469 MB / 0.5643 GB, free: 480 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.518, allocations: 16.06 kB / 0.5643 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.143e-05/0.5181, allocations: 16 kB / 0.5643 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00366/0.5217, allocations: 466.8 kB / 0.5647 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/0.5243, allocations: 0.5232 MB / 0.5652 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.535, allocations: 7.677 MB / 0.5727 GB, free: 7.293 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.5369, allocations: 63.98 kB / 0.5728 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.5372, allocations: 99.97 kB / 0.5729 GB, free: 7.133 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.0009012/0.5381, allocations: 375.5 kB / 0.5733 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.5384, allocations: 134.3 kB / 0.5734 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007539/0.546, allocations: 2.439 MB / 0.5758 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.546, allocations: 20 kB / 0.5758 GB, free: 4.184 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.546, allocations: 0 / 0.5758 GB, free: 4.184 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.5461, allocations: 11.97 kB / 0.5758 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009672/0.5557, allocations: 4.075 MB / 0.5798 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.5558, allocations: 3.984 kB / 0.5798 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002099/0.5579, allocations: 388.9 kB / 0.5802 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003593/0.5615, allocations: 453.3 kB / 0.5806 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002399/0.5618, allocations: 55.97 kB / 0.5806 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009864/0.5716, allocations: 7.517 MB / 0.588 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5717, allocations: 0 / 0.588 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008397/0.5801, allocations: 3.141 MB / 0.591 GB, free: 4.027 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005204/0.5806, allocations: 199.5 kB / 0.5912 GB, free: 3.812 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/0.5809, allocations: 35.98 kB / 0.5913 GB, free: 3.777 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009406/0.5818, allocations: 43.92 kB / 0.5913 GB, free: 3.734 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003583/0.5822, allocations: 144 kB / 0.5914 GB, free: 3.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/0.5824, allocations: 63.98 kB / 0.5915 GB, free: 3.535 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007906/0.5832, allocations: 0.5079 MB / 0.592 GB, free: 3.016 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5832, allocations: 0 / 0.592 GB, free: 3.016 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004036/0.5872, allocations: 1.058 MB / 0.593 GB, free: 1.957 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.003373/0.5906, allocations: 1.15 MB / 0.5942 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004665/0.5953, allocations: 2.256 MB / 0.5964 GB, free: 14.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.5953, allocations: 0 / 0.5964 GB, free: 14.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.5978, allocations: 1.394 MB / 0.5977 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.6001, allocations: 305.8 kB / 0.598 GB, free: 13 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006836/0.607, allocations: 3.171 MB / 0.6011 GB, free: 9.816 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.6082, allocations: 1.277 MB / 0.6024 GB, free: 8.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/0.6094, allocations: 311.2 kB / 0.6027 GB, free: 8.195 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6094, allocations: 3.938 kB / 0.6027 GB, free: 8.191 MB / 462.1 MB Notification: Performance of Templates: time 0.0666/0.676, allocations: 54.51 MB / 0.6559 GB, free: 1.781 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)