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.0007814/0.0007814, allocations: 92.16 kB / 16.02 MB, free: 80 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.0009147/0.0009148, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.368/1.368, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1812/0.1812, allocations: 15.28 MB / 307.4 MB, free: 15.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003417, allocations: 8 kB / 372.7 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2789, allocations: 54.63 MB / 427.4 MB, free: 40.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006652/0.2856, allocations: 8.087 MB / 435.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02096/0.3066, allocations: 23 MB / 458.5 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001883/0.3085, allocations: 35.09 kB / 458.5 MB, free: 20.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.3101, allocations: 438.2 kB / 458.9 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005839/0.316, allocations: 1.724 MB / 460.6 MB, free: 19.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007926/0.324, allocations: 2.553 MB / 463.2 MB, free: 17.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002795/0.3268, allocations: 2.072 MB / 465.3 MB, free: 16.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.3286, allocations: 1.029 MB / 466.3 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.3303, allocations: 0.9966 MB / 467.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002086/0.3324, allocations: 1.135 MB / 468.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006687/0.3331, allocations: 104.1 kB / 468.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008715/0.3419, allocations: 2.444 MB / 471 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000975/0.3429, allocations: 380.3 kB / 471.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002354/0.3453, allocations: 0.8807 MB / 472.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006565/0.3518, allocations: 3.417 MB / 475.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.3519, allocations: 0 / 475.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.3519, allocations: 0 / 475.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000124/0.352, allocations: 1.5 kB / 475.6 MB, free: 13.21 MB / 350.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.006505/0.3585, allocations: 2.011 MB / 477.7 MB, free: 12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.3586, allocations: 9.375 kB / 477.7 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002476/0.3611, allocations: 405.2 kB / 478.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002306/0.3634, allocations: 0.835 MB / 478.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002112/0.3636, allocations: 170.7 kB / 479.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007684/0.3644, allocations: 150.8 kB / 479.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005766/0.3702, allocations: 2.032 MB / 481.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.856e-05/0.3703, allocations: 1 kB / 481.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003743/0.3707, allocations: 55.91 kB / 481.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.455e-05/0.3707, allocations: 35.12 kB / 481.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005526/0.3763, allocations: 2.703 MB / 484 MB, free: 9.484 MB / 350.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.01477/0.3911, allocations: 6.427 MB / 490.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00517/0.3963, allocations: 3.316 MB / 493.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.3978, allocations: 0.8889 MB / 494.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01109/0.4089, allocations: 7.076 MB / 0.49 GB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.718e-05/0.409, allocations: 51.5 kB / 0.49 GB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001117/0.4101, allocations: 158.7 kB / 0.4902 GB, free: 10.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 7.304e-06/0.4102, allocations: 0 / 0.4902 GB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02469/0.4349, allocations: 5.451 MB / 0.4955 GB, free: 4.508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.4349, allocations: 68.66 kB / 0.4956 GB, free: 4.426 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.4365, allocations: 1.034 MB / 0.4966 GB, free: 3.367 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002685/0.4368, allocations: 49.69 kB / 0.4966 GB, free: 3.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004927/0.4373, allocations: 0.6816 MB / 0.4973 GB, free: 2.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006001/0.4379, allocations: 484.9 kB / 0.4978 GB, free: 2.137 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000316/0.4382, allocations: 137.6 kB / 0.4979 GB, free: 1.996 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4383, allocations: 305.1 kB / 0.4982 GB, free: 1.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.4397, allocations: 0.652 MB / 0.4988 GB, free: 1.043 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.4413, allocations: 1.099 MB / 0.4999 GB, free: 15.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002972/0.4442, allocations: 1.808 MB / 0.5017 GB, free: 13.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/0.4443, allocations: 4 kB / 0.5017 GB, free: 13.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007748/0.452, allocations: 2.415 MB / 0.504 GB, free: 11.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.4521, allocations: 15.94 kB / 0.504 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.262e-05/0.4521, allocations: 16 kB / 0.5041 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003139/0.4553, allocations: 0.502 MB / 0.5045 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.4572, allocations: 423.3 kB / 0.5049 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006136/0.4634, allocations: 3.511 MB / 0.5084 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.4654, allocations: 87.8 kB / 0.5085 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005137/0.4659, allocations: 95.97 kB / 0.5085 GB, free: 6.398 MB / 382.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.001049/0.467, allocations: 333.4 kB / 0.5089 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004054/0.4674, allocations: 122.4 kB / 0.509 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007671/0.4751, allocations: 2.153 MB / 0.5111 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.771e-05/0.4751, allocations: 16 kB / 0.5111 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.4752, allocations: 0 / 0.5111 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.931e-05/0.4752, allocations: 7.969 kB / 0.5111 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.4855, allocations: 3.554 MB / 0.5146 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.4855, allocations: 0 / 0.5146 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.4869, allocations: 271.8 kB / 0.5148 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003078/0.49, allocations: 486.1 kB / 0.5153 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002858/0.4903, allocations: 51.97 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00518/0.4955, allocations: 3.417 MB / 0.5187 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4955, allocations: 0 / 0.5187 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008341/0.5039, allocations: 2.751 MB / 0.5214 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004783/0.5044, allocations: 207.7 kB / 0.5216 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004191/0.5048, allocations: 24 kB / 0.5216 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.506, allocations: 55.91 kB / 0.5217 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/0.5064, allocations: 129 kB / 0.5218 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001744/0.5066, allocations: 59.97 kB / 0.5218 GB, free: 8.375 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.5076, allocations: 0.703 MB / 0.5225 GB, free: 7.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5076, allocations: 0 / 0.5225 GB, free: 7.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003298/0.5109, allocations: 0.933 MB / 0.5234 GB, free: 6.727 MB / 398.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.002941/0.5139, allocations: 1.085 MB / 0.5245 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.518, allocations: 2.008 MB / 0.5264 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.279e-06/0.518, allocations: 0 / 0.5264 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002181/0.5202, allocations: 1.143 MB / 0.5276 GB, free: 2.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.5221, allocations: 239.9 kB / 0.5278 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005724/0.5278, allocations: 3.43 MB / 0.5311 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008598/0.5287, allocations: 1.179 MB / 0.5323 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008502/0.5296, allocations: 271.2 kB / 0.5326 GB, free: 13.2 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5296, allocations: 0 / 0.5326 GB, free: 13.2 MB / 414.1 MB Notification: Performance of Templates: time 0.05414/0.5837, allocations: 42.69 MB / 0.5742 GB, free: 2.562 MB / 446.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)