Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 107.5 kB / 16.41 MB, free: 6.512 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.001717/0.001718, allocations: 187 kB / 17.34 MB, free: 5.742 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08067/0.08067, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 68.11 kB / 425.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 53.61 MB / 479.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.00812/0.1115, allocations: 7.541 MB / 487 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02411/0.1357, allocations: 23.32 MB / 0.4984 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.137, allocations: 19.88 kB / 0.4984 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.1384, allocations: 472.4 kB / 0.4988 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005511/0.1439, allocations: 1.952 MB / 0.5007 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007705/0.1517, allocations: 2.912 MB / 0.5036 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2521/0.4038, allocations: 2.127 MB / 0.5057 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/0.4059, allocations: 1.24 MB / 0.5069 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.4076, allocations: 1.07 MB / 0.5079 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.4096, allocations: 1.21 MB / 0.5091 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003893/0.41, allocations: 190.2 kB / 0.5093 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008763/0.4188, allocations: 2.512 MB / 0.5117 GB, free: 5.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007232/0.4196, allocations: 472.4 kB / 0.5122 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001552/0.4211, allocations: 0.9458 MB / 0.5131 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.4342, allocations: 4.692 MB / 0.5177 GB, free: 5.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4343, allocations: 0 / 0.5177 GB, free: 5.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4343, allocations: 0 / 0.5177 GB, free: 5.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.824e-05/0.4343, allocations: 1.188 kB / 0.5177 GB, free: 5.121 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: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.006938/0.4413, allocations: 2.399 MB / 0.52 GB, free: 3.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.4414, allocations: 9.5 kB / 0.52 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002063/0.4434, allocations: 393.3 kB / 0.5204 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.4453, allocations: 0.8923 MB / 0.5213 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.4455, allocations: 163.2 kB / 0.5214 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003023/0.4458, allocations: 152.9 kB / 0.5216 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003795/0.4496, allocations: 2.036 MB / 0.5236 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.4497, allocations: 0.9375 kB / 0.5236 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.4499, allocations: 55.78 kB / 0.5236 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.944e-05/0.4499, allocations: 35.09 kB / 0.5237 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004012/0.4539, allocations: 2.698 MB / 0.5263 GB, free: 2.43 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.01108/0.465, allocations: 6.49 MB / 0.5326 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004992/0.47, allocations: 3.313 MB / 0.5359 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.4714, allocations: 0.8872 MB / 0.5367 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00993/0.4813, allocations: 7.203 MB / 0.5438 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.4814, allocations: 47.56 kB / 0.5438 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008867/0.4823, allocations: 173.7 kB / 0.544 GB, free: 6.148 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 4.809e-06/0.4823, allocations: 0 / 0.544 GB, free: 6.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02059/0.5029, allocations: 5.393 MB / 0.5493 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.503, allocations: 72.72 kB / 0.5493 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.5043, allocations: 1.043 MB / 0.5503 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.5045, allocations: 45.7 kB / 0.5504 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/0.5049, allocations: 0.6759 MB / 0.551 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004284/0.5054, allocations: 487.1 kB / 0.5515 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.5059, allocations: 327.3 kB / 0.5518 GB, free: 14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.506, allocations: 305.1 kB / 0.5521 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.507, allocations: 0.6487 MB / 0.5528 GB, free: 13.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.5084, allocations: 1.112 MB / 0.5538 GB, free: 11.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/0.511, allocations: 1.796 MB / 0.5556 GB, free: 9.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.511, allocations: 4 kB / 0.5556 GB, free: 9.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006615/0.5176, allocations: 2.409 MB / 0.5579 GB, free: 7.477 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.5177, allocations: 15.94 kB / 0.558 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.832e-05/0.5177, allocations: 20.12 kB / 0.558 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002742/0.5205, allocations: 490.6 kB / 0.5584 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.5222, allocations: 414.2 kB / 0.5588 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005438/0.5276, allocations: 3.869 MB / 0.5626 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.5293, allocations: 55.94 kB / 0.5627 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/0.5295, allocations: 99.95 kB / 0.5628 GB, free: 2.309 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007819/0.5303, allocations: 340.7 kB / 0.5631 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/0.5306, allocations: 122.5 kB / 0.5632 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006459/0.5371, allocations: 2.136 MB / 0.5653 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.5372, allocations: 15.94 kB / 0.5653 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.5372, allocations: 4 kB / 0.5653 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.5372, allocations: 7.969 kB / 0.5653 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008439/0.5456, allocations: 3.542 MB / 0.5688 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.5457, allocations: 0 / 0.5688 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.5468, allocations: 277.8 kB / 0.569 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/0.5495, allocations: 462 kB / 0.5695 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.5497, allocations: 51.95 kB / 0.5695 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/0.5547, allocations: 3.774 MB / 0.5732 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5547, allocations: 0 / 0.5732 GB, free: 7.328 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007062/0.5618, allocations: 2.744 MB / 0.5759 GB, free: 4.562 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.5623, allocations: 187.6 kB / 0.5761 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.5625, allocations: 31.94 kB / 0.5761 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007559/0.5633, allocations: 31.98 kB / 0.5761 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.5636, allocations: 124.9 kB / 0.5763 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.5637, allocations: 59.97 kB / 0.5763 GB, free: 4.121 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008671/0.5646, allocations: 0.7068 MB / 0.577 GB, free: 3.402 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5646, allocations: 0 / 0.577 GB, free: 3.402 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003309/0.5679, allocations: 0.9447 MB / 0.5779 GB, free: 2.457 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.logn,OH.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 (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002689/0.5706, allocations: 1.096 MB / 0.579 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003939/0.5746, allocations: 2.008 MB / 0.581 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5746, allocations: 0 / 0.581 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.5765, allocations: 1.138 MB / 0.5821 GB, free: 14.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.5781, allocations: 255.7 kB / 0.5823 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/0.583, allocations: 2.695 MB / 0.585 GB, free: 11.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006934/0.5837, allocations: 1.187 MB / 0.5861 GB, free: 10.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007295/0.5844, allocations: 267.2 kB / 0.5864 GB, free: 9.898 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/0.5845, allocations: 1.125 kB / 0.5864 GB, free: 9.898 MB / 446.1 MB Notification: Performance of Templates: time 0.04887/0.6333, allocations: 42.95 MB / 0.6283 GB, free: 15.1 MB / 494.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)