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.001693/0.001693, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00212/0.00212, allocations: 194.7 kB / 16.14 MB, free: 6.664 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.374/1.374, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.205/0.205, allocations: 15.31 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.91 kB / 369.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1049, allocations: 53.61 MB / 423.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.WaterSelfIonization): time 0.01001/0.1149, allocations: 9.519 MB / 432.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1852/0.3002, allocations: 24.12 MB / 456.9 MB, free: 36.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.3016, allocations: 41.78 kB / 456.9 MB, free: 36.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.3029, allocations: 459.3 kB / 457.4 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005057/0.308, allocations: 1.898 MB / 459.3 MB, free: 35.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006664/0.3147, allocations: 2.632 MB / 461.9 MB, free: 34.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002495/0.3173, allocations: 2.36 MB / 464.3 MB, free: 33.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.3185, allocations: 1.201 MB / 465.5 MB, free: 32.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.3198, allocations: 1.196 MB / 466.7 MB, free: 32.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.3215, allocations: 1.306 MB / 468 MB, free: 31.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003794/0.3219, allocations: 145.6 kB / 468.1 MB, free: 31.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008041/0.3299, allocations: 2.61 MB / 470.7 MB, free: 31.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008225/0.3308, allocations: 459.4 kB / 471.2 MB, free: 30.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.3321, allocations: 1.01 MB / 472.2 MB, free: 30.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01276/0.3449, allocations: 4.755 MB / 476.9 MB, free: 28.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.345, allocations: 0 / 476.9 MB, free: 28.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.345, allocations: 4.609 kB / 476.9 MB, free: 28.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.572e-05/0.3451, allocations: 0 / 476.9 MB, free: 28.26 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.005872/0.351, allocations: 2.649 MB / 479.6 MB, free: 26.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.351, allocations: 9.5 kB / 479.6 MB, free: 26.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001937/0.353, allocations: 415 kB / 480 MB, free: 26.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.3546, allocations: 0.9265 MB / 480.9 MB, free: 26.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.3547, allocations: 188.1 kB / 481.1 MB, free: 25.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/0.355, allocations: 183.6 kB / 481.3 MB, free: 25.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003378/0.3584, allocations: 2.092 MB / 483.4 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/0.3585, allocations: 3.938 kB / 483.4 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001616/0.3586, allocations: 72.58 kB / 483.5 MB, free: 24.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/0.3587, allocations: 45.44 kB / 483.5 MB, free: 24.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004032/0.3627, allocations: 2.61 MB / 486.1 MB, free: 24.21 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.01122/0.374, allocations: 6.648 MB / 492.8 MB, free: 20.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004944/0.3789, allocations: 3.139 MB / 495.9 MB, free: 18.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001672/0.3806, allocations: 0.929 MB / 496.8 MB, free: 18.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01016/0.3908, allocations: 8.151 MB / 0.4932 GB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.3909, allocations: 48.67 kB / 0.4932 GB, free: 11.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=144): time 3.306e-06/0.3909, allocations: 7.938 kB / 0.4932 GB, free: 11.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=180): time 0.03087/0.4217, allocations: 6.979 MB / 0.5 GB, free: 6.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.4218, allocations: 107.1 kB / 0.5001 GB, free: 6.023 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008415/0.4227, allocations: 0.7806 MB / 0.5009 GB, free: 5.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/0.423, allocations: 61.69 kB / 0.5009 GB, free: 5.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002949/0.4233, allocations: 0.7327 MB / 0.5017 GB, free: 4.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003892/0.4237, allocations: 0.6161 MB / 0.5023 GB, free: 3.781 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004476/0.4242, allocations: 363.3 kB / 0.5026 GB, free: 3.418 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.4242, allocations: 301.1 kB / 0.5029 GB, free: 3.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009505/0.4252, allocations: 0.6208 MB / 0.5035 GB, free: 2.496 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.4263, allocations: 1.125 MB / 0.5046 GB, free: 1.145 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002405/0.4287, allocations: 1.917 MB / 0.5065 GB, free: 15.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-06/0.4287, allocations: 7.938 kB / 0.5065 GB, free: 15 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007976/0.4367, allocations: 2.471 MB / 0.5089 GB, free: 12.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.4368, allocations: 14.03 kB / 0.5089 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.588e-05/0.4368, allocations: 16 kB / 0.5089 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003962/0.4408, allocations: 471.7 kB / 0.5094 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/0.4436, allocations: 0.5305 MB / 0.5099 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.4544, allocations: 6.931 MB / 0.5167 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.4562, allocations: 107.9 kB / 0.5168 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/0.4564, allocations: 95.98 kB / 0.5169 GB, free: 3.824 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.0007434/0.4572, allocations: 377.1 kB / 0.5172 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003421/0.4575, allocations: 142.3 kB / 0.5173 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007797/0.4654, allocations: 2.431 MB / 0.5197 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.4654, allocations: 20 kB / 0.5197 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.4654, allocations: 4 kB / 0.5197 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.731e-05/0.4655, allocations: 7.969 kB / 0.5198 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.476, allocations: 4.083 MB / 0.5237 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.476, allocations: 0 / 0.5237 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002135/0.4782, allocations: 395.5 kB / 0.5241 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003913/0.4821, allocations: 455 kB / 0.5246 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002467/0.4823, allocations: 59.97 kB / 0.5246 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0095/0.4919, allocations: 6.774 MB / 0.5312 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4919, allocations: 4.031 kB / 0.5312 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008776/0.5007, allocations: 3.131 MB / 0.5343 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004919/0.5012, allocations: 195.3 kB / 0.5345 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003444/0.5016, allocations: 39.94 kB / 0.5345 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.5027, allocations: 71.86 kB / 0.5346 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003426/0.503, allocations: 137.8 kB / 0.5347 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.5032, allocations: 63.97 kB / 0.5348 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006507/0.5038, allocations: 0.5079 MB / 0.5353 GB, free: 272 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5039, allocations: 0 / 0.5353 GB, free: 272 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.003592/0.5075, allocations: 1.054 MB / 0.5363 GB, free: 15.21 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.002586/0.5101, allocations: 1.135 MB / 0.5374 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004112/0.5142, allocations: 2.249 MB / 0.5396 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5142, allocations: 0 / 0.5396 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/0.5164, allocations: 1.396 MB / 0.541 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/0.5182, allocations: 270.9 kB / 0.5412 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006072/0.5243, allocations: 3.935 MB / 0.5451 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000888/0.5252, allocations: 1.28 MB / 0.5463 GB, free: 4.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001704/0.527, allocations: 351.3 kB / 0.5467 GB, free: 4.426 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005662/0.5275, allocations: 244.4 kB / 0.5469 GB, free: 4.191 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5275, allocations: 4 kB / 0.5469 GB, free: 4.188 MB / 414.1 MB Notification: Performance of Templates: time 0.05598/0.5835, allocations: 36.15 MB / 0.5822 GB, free: 168 kB / 446.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)