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.008175/0.008175, allocations: 100.4 kB / 15.87 MB, free: 5.863 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.001843/0.001843, allocations: 190.6 kB / 16.79 MB, free: 5.805 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.358/1.358, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2001/0.2001, allocations: 15.3 MB / 305.9 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.89 kB / 370.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.09997, allocations: 53.61 MB / 423.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.009652/0.1097, allocations: 8.542 MB / 432.5 MB, free: 6.156 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2203/0.33, allocations: 23.26 MB / 455.7 MB, free: 37.45 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.3318, allocations: 35.97 kB / 455.7 MB, free: 37.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.3335, allocations: 440 kB / 456.2 MB, free: 37.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005779/0.3394, allocations: 1.725 MB / 457.9 MB, free: 36.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007392/0.3468, allocations: 2.553 MB / 460.5 MB, free: 35.24 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002549/0.3494, allocations: 2.065 MB / 462.5 MB, free: 34.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.3506, allocations: 1.073 MB / 463.6 MB, free: 34.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.3518, allocations: 1.05 MB / 464.6 MB, free: 33.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.3531, allocations: 1.179 MB / 465.8 MB, free: 33.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002669/0.3533, allocations: 129.2 kB / 465.9 MB, free: 33.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007243/0.3606, allocations: 2.469 MB / 468.4 MB, free: 32.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005897/0.3612, allocations: 422.7 kB / 468.8 MB, free: 32.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.3623, allocations: 0.8901 MB / 469.7 MB, free: 32.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004597/0.3669, allocations: 3.451 MB / 473.2 MB, free: 30.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.367, allocations: 4 kB / 473.2 MB, free: 30.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.367, allocations: 5.062 kB / 473.2 MB, free: 30.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.005e-05/0.367, allocations: 0 / 473.2 MB, free: 30.71 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: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.005101/0.3722, allocations: 2.4 MB / 475.6 MB, free: 29.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3722, allocations: 9.219 kB / 475.6 MB, free: 29.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001818/0.374, allocations: 392.6 kB / 476 MB, free: 29.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.3754, allocations: 0.8645 MB / 476.8 MB, free: 28.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.3755, allocations: 165.2 kB / 477 MB, free: 28.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000266/0.3758, allocations: 152.5 kB / 477.1 MB, free: 28.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003354/0.3792, allocations: 2.029 MB / 479.2 MB, free: 27.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.3792, allocations: 0.9375 kB / 479.2 MB, free: 27.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.3794, allocations: 62.53 kB / 479.2 MB, free: 27.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/0.3794, allocations: 38.06 kB / 479.3 MB, free: 27.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004184/0.3836, allocations: 2.695 MB / 482 MB, free: 26.82 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.01153/0.3952, allocations: 6.51 MB / 488.5 MB, free: 23.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005187/0.4004, allocations: 3.303 MB / 491.8 MB, free: 21.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.4019, allocations: 0.8863 MB / 492.7 MB, free: 21.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.4124, allocations: 7.221 MB / 499.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.4125, allocations: 47.86 kB / 499.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009955/0.4135, allocations: 165.3 kB / 0.4884 GB, free: 15.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 8.195e-06/0.4135, allocations: 0 / 0.4884 GB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02205/0.4356, allocations: 5.407 MB / 0.4937 GB, free: 13.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.4356, allocations: 64.72 kB / 0.4937 GB, free: 13.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.4369, allocations: 1.032 MB / 0.4947 GB, free: 12.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002681/0.4372, allocations: 49.7 kB / 0.4948 GB, free: 12.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.4376, allocations: 0.6816 MB / 0.4954 GB, free: 11.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/0.438, allocations: 488.9 kB / 0.4959 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005872/0.4386, allocations: 339.2 kB / 0.4962 GB, free: 10.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.377e-05/0.4387, allocations: 301.1 kB / 0.4965 GB, free: 10.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.4397, allocations: 0.652 MB / 0.4972 GB, free: 9.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.441, allocations: 1.103 MB / 0.4982 GB, free: 8.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002252/0.4433, allocations: 1.808 MB / 0.5 GB, free: 6.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.4433, allocations: 4 kB / 0.5 GB, free: 6.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006398/0.4497, allocations: 2.408 MB / 0.5024 GB, free: 4.113 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.4497, allocations: 14.12 kB / 0.5024 GB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.4498, allocations: 19.94 kB / 0.5024 GB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002802/0.4526, allocations: 490.8 kB / 0.5029 GB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.4541, allocations: 419.3 kB / 0.5033 GB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.4589, allocations: 3.486 MB / 0.5067 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.4606, allocations: 84.02 kB / 0.5067 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003357/0.461, allocations: 93.06 kB / 0.5068 GB, free: 15.26 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.0009078/0.4619, allocations: 341.2 kB / 0.5072 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004571/0.4624, allocations: 122.4 kB / 0.5073 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007241/0.4696, allocations: 2.136 MB / 0.5094 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.4697, allocations: 16 kB / 0.5094 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.4697, allocations: 0 / 0.5094 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.664e-05/0.4697, allocations: 7.969 kB / 0.5094 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009307/0.479, allocations: 3.546 MB / 0.5128 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4791, allocations: 0 / 0.5128 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.4803, allocations: 275.7 kB / 0.5131 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00286/0.4832, allocations: 464.4 kB / 0.5135 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/0.4835, allocations: 51.97 kB / 0.5136 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/0.4885, allocations: 3.402 MB / 0.5169 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4885, allocations: 0 / 0.5169 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008095/0.4966, allocations: 2.747 MB / 0.5196 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006507/0.4973, allocations: 183.6 kB / 0.5198 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005232/0.4979, allocations: 31.94 kB / 0.5198 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.499, allocations: 51.97 kB / 0.5199 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003436/0.4994, allocations: 125.3 kB / 0.52 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/0.4996, allocations: 55.95 kB / 0.52 GB, free: 1.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.5006, allocations: 0.7069 MB / 0.5207 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.835e-06/0.5006, allocations: 0 / 0.5207 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003503/0.5041, allocations: 0.9484 MB / 0.5216 GB, free: 15.66 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.002902/0.5071, allocations: 1.081 MB / 0.5227 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004323/0.5114, allocations: 2.008 MB / 0.5247 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5114, allocations: 0.9375 kB / 0.5247 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/0.5137, allocations: 1.143 MB / 0.5258 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.5156, allocations: 244.1 kB / 0.526 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005767/0.5214, allocations: 3.334 MB / 0.5293 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009003/0.5223, allocations: 1.187 MB / 0.5304 GB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008085/0.5231, allocations: 266.2 kB / 0.5307 GB, free: 6.242 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5231, allocations: 0 / 0.5307 GB, free: 6.242 MB / 398.1 MB Notification: Performance of Templates: time 0.05315/0.5763, allocations: 42.89 MB / 0.5726 GB, free: 11.43 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)