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.009969/0.009969, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.001623/0.001623, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.578/1.578, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.266/0.266, allocations: 15.33 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 55.91 kB / 425.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3091, allocations: 53.62 MB / 478.8 MB, free: 25.99 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.007571/0.3167, allocations: 7.536 MB / 486.4 MB, free: 20.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02121/0.338, allocations: 23.33 MB / 0.4977 GB, free: 1.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.3395, allocations: 19.62 kB / 0.4978 GB, free: 1.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001318/0.3408, allocations: 478.8 kB / 0.4982 GB, free: 1.129 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005688/0.3466, allocations: 1.941 MB / 0.5001 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008488/0.3551, allocations: 2.907 MB / 0.5029 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003698/0.3588, allocations: 2.143 MB / 0.505 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001701/0.3606, allocations: 1.247 MB / 0.5063 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.3623, allocations: 1.068 MB / 0.5073 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002167/0.3644, allocations: 1.207 MB / 0.5085 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003726/0.3648, allocations: 192 kB / 0.5087 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01067/0.3755, allocations: 2.508 MB / 0.5111 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008029/0.3763, allocations: 478.6 kB / 0.5116 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.3778, allocations: 0.9451 MB / 0.5125 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01433/0.3922, allocations: 4.695 MB / 0.5171 GB, free: 15.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3922, allocations: 0 / 0.5171 GB, free: 15.69 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3922, allocations: 0 / 0.5171 GB, free: 15.69 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.915e-05/0.3922, allocations: 0 / 0.5171 GB, free: 15.69 MB / 398.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.004386/0.3966, allocations: 2.399 MB / 0.5194 GB, free: 13.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3967, allocations: 16.02 kB / 0.5194 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.3983, allocations: 394.3 kB / 0.5198 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.3998, allocations: 0.8854 MB / 0.5207 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.4, allocations: 166.9 kB / 0.5208 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002503/0.4003, allocations: 152.3 kB / 0.521 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/0.4034, allocations: 2.037 MB / 0.523 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.4035, allocations: 0 / 0.523 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.4036, allocations: 60 kB / 0.523 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.4037, allocations: 36 kB / 0.5231 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00407/0.4077, allocations: 2.693 MB / 0.5257 GB, free: 6.711 MB / 398.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.01058/0.4183, allocations: 6.464 MB / 0.532 GB, free: 24 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004881/0.4232, allocations: 3.31 MB / 0.5352 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.4245, allocations: 0.8871 MB / 0.5361 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009611/0.4341, allocations: 7.209 MB / 0.5431 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.4342, allocations: 43.56 kB / 0.5432 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006798/0.4348, allocations: 174.7 kB / 0.5433 GB, free: 3.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.276e-06/0.4349, allocations: 0 / 0.5433 GB, free: 3.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.01929/0.4542, allocations: 5.389 MB / 0.5486 GB, free: 14.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.4542, allocations: 72.72 kB / 0.5487 GB, free: 13.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.4556, allocations: 1.034 MB / 0.5497 GB, free: 12.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.4558, allocations: 49.7 kB / 0.5497 GB, free: 12.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004289/0.4562, allocations: 0.6777 MB / 0.5504 GB, free: 12.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.4566, allocations: 492.9 kB / 0.5509 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004646/0.4571, allocations: 327.4 kB / 0.5512 GB, free: 11.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.4572, allocations: 301.1 kB / 0.5515 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.4583, allocations: 0.652 MB / 0.5521 GB, free: 10.37 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.4598, allocations: 1.107 MB / 0.5532 GB, free: 9.074 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.4623, allocations: 1.812 MB / 0.555 GB, free: 7.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/0.4624, allocations: 4 kB / 0.555 GB, free: 7.066 MB / 430.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006677/0.469, allocations: 2.408 MB / 0.5573 GB, free: 4.641 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.4691, allocations: 15.94 kB / 0.5573 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/0.4691, allocations: 16.12 kB / 0.5573 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002727/0.4719, allocations: 490 kB / 0.5578 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.4734, allocations: 419.3 kB / 0.5582 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/0.4789, allocations: 3.865 MB / 0.562 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.4803, allocations: 55.94 kB / 0.562 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001739/0.4804, allocations: 95.95 kB / 0.5621 GB, free: 15.42 MB / 446.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.0005955/0.481, allocations: 337.3 kB / 0.5625 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002627/0.4813, allocations: 118.5 kB / 0.5626 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006116/0.4874, allocations: 2.133 MB / 0.5646 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.4875, allocations: 15.94 kB / 0.5647 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4875, allocations: 4 kB / 0.5647 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.4875, allocations: 7.969 kB / 0.5647 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00803/0.4955, allocations: 3.543 MB / 0.5681 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.4956, allocations: 0 / 0.5681 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.4967, allocations: 279.6 kB / 0.5684 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/0.4994, allocations: 466.2 kB / 0.5688 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003087/0.4997, allocations: 47.95 kB / 0.5689 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005108/0.5048, allocations: 3.783 MB / 0.5726 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5048, allocations: 0 / 0.5726 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006883/0.5117, allocations: 2.745 MB / 0.5753 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.5121, allocations: 187.6 kB / 0.5754 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.5123, allocations: 31.94 kB / 0.5755 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006938/0.513, allocations: 27.98 kB / 0.5755 GB, free: 1.285 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.5133, allocations: 125.1 kB / 0.5756 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.5134, allocations: 55.97 kB / 0.5757 GB, free: 1.109 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008244/0.5142, allocations: 0.7069 MB / 0.5764 GB, free: 400 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5142, allocations: 0 / 0.5764 GB, free: 400 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.002575/0.5168, allocations: 0.9485 MB / 0.5773 GB, free: 15.44 MB / 462.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.001834/0.5187, allocations: 1.089 MB / 0.5784 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003481/0.5222, allocations: 2.008 MB / 0.5803 GB, free: 12.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5222, allocations: 0 / 0.5803 GB, free: 12.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.5241, allocations: 1.139 MB / 0.5814 GB, free: 11.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.5255, allocations: 262.7 kB / 0.5817 GB, free: 10.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005213/0.5307, allocations: 2.651 MB / 0.5843 GB, free: 8.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008033/0.5315, allocations: 1.191 MB / 0.5854 GB, free: 6.949 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001128/0.5326, allocations: 317.6 kB / 0.5857 GB, free: 6.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004527/0.5331, allocations: 207.3 kB / 0.5859 GB, free: 6.438 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5331, allocations: 4 kB / 0.5859 GB, free: 6.434 MB / 462.1 MB Notification: Performance of Templates: time 0.3073/0.8405, allocations: 34.58 MB / 0.6197 GB, free: 119.4 MB / 478.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)