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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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: "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.0009154/0.0009155, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1961/0.1961, allocations: 15.25 MB / 306.2 MB, free: 15.81 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003277, allocations: 8 kB / 371.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2769, allocations: 54.62 MB / 426.1 MB, free: 40.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.005376/0.2823, allocations: 6.822 MB / 432.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01545/0.2978, allocations: 19.65 MB / 452.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.2988, allocations: 35.72 kB / 452.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.2999, allocations: 455 kB / 453 MB, free: 24.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.304, allocations: 1.943 MB / 455 MB, free: 22.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005815/0.3098, allocations: 2.609 MB / 457.6 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00205/0.3119, allocations: 1.4 MB / 459 MB, free: 20.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008789/0.3128, allocations: 0.9765 MB / 460 MB, free: 20.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007749/0.3136, allocations: 0.7844 MB / 460.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.3146, allocations: 1.048 MB / 461.8 MB, free: 19.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000177/0.3148, allocations: 104.3 kB / 461.9 MB, free: 19.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00872/0.3235, allocations: 2.771 MB / 464.7 MB, free: 18.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005094/0.324, allocations: 375.6 kB / 465 MB, free: 18.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005324/0.3246, allocations: 321.2 kB / 465.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006531/0.3311, allocations: 2.758 MB / 468.1 MB, free: 17.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.3311, allocations: 0 / 468.1 MB, free: 17.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3312, allocations: 0 / 468.1 MB, free: 17.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.17e-05/0.3312, allocations: 0 / 468.1 MB, free: 17.73 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.005227/0.3364, allocations: 2.022 MB / 470.1 MB, free: 16.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3365, allocations: 9.812 kB / 470.1 MB, free: 16.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003266/0.3368, allocations: 213.3 kB / 470.3 MB, free: 16.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001701/0.3385, allocations: 390.9 kB / 470.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.3399, allocations: 0.7777 MB / 471.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.3401, allocations: 167 kB / 471.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000275/0.3404, allocations: 160.3 kB / 471.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002949/0.3433, allocations: 2.003 MB / 473.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.3434, allocations: 0.7031 kB / 473.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.3435, allocations: 60.16 kB / 473.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.837e-05/0.3435, allocations: 34.84 kB / 473.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003766/0.3473, allocations: 2.687 MB / 476.6 MB, free: 13.9 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.01011/0.3574, allocations: 6.374 MB / 483 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004741/0.3622, allocations: 3.307 MB / 486.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008119/0.3703, allocations: 7.026 MB / 493.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.3704, allocations: 51.52 kB / 493.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007982/0.3712, allocations: 158.7 kB / 493.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=117): time 3.477e-06/0.3712, allocations: 0 / 493.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.0192/0.3904, allocations: 5.43 MB / 498.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3905, allocations: 64.72 kB / 499 MB, free: 11.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.3918, allocations: 1.022 MB / 0.4883 GB, free: 10.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001628/0.3919, allocations: 45.7 kB / 0.4884 GB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004447/0.3924, allocations: 0.6777 MB / 0.489 GB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004079/0.3928, allocations: 493 kB / 0.4895 GB, free: 9.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.743e-05/0.3929, allocations: 36 kB / 0.4895 GB, free: 9.496 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3931, allocations: 373.8 kB / 0.4899 GB, free: 9.125 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.3941, allocations: 0.6403 MB / 0.4905 GB, free: 8.484 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.3954, allocations: 1.107 MB / 0.4916 GB, free: 7.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.3966, allocations: 0.7794 MB / 0.4923 GB, free: 6.406 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3966, allocations: 8 kB / 0.4924 GB, free: 6.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006186/0.4028, allocations: 2.408 MB / 0.4947 GB, free: 3.973 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.4029, allocations: 12 kB / 0.4947 GB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.4029, allocations: 12 kB / 0.4947 GB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002743/0.4056, allocations: 0.4942 MB / 0.4952 GB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.4071, allocations: 427.3 kB / 0.4956 GB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005325/0.4125, allocations: 3.538 MB / 0.4991 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.4139, allocations: 83.94 kB / 0.4992 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.4141, allocations: 91.95 kB / 0.4992 GB, free: 15.05 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005865/0.4147, allocations: 341.2 kB / 0.4996 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.4149, allocations: 122.5 kB / 0.4997 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006313/0.4212, allocations: 2.145 MB / 0.5018 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.4213, allocations: 12 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.4213, allocations: 4 kB / 0.5018 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.4213, allocations: 7.969 kB / 0.5018 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008172/0.4295, allocations: 3.534 MB / 0.5053 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.4295, allocations: 0 / 0.5053 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.4306, allocations: 271.7 kB / 0.5055 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/0.4333, allocations: 478.1 kB / 0.506 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/0.4335, allocations: 51.92 kB / 0.506 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004972/0.4385, allocations: 3.453 MB / 0.5094 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4385, allocations: 4.094 kB / 0.5094 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006958/0.4455, allocations: 2.747 MB / 0.5121 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006439/0.4462, allocations: 199.5 kB / 0.5123 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.4464, allocations: 28 kB / 0.5123 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008015/0.4472, allocations: 55.97 kB / 0.5123 GB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/0.4475, allocations: 117.1 kB / 0.5125 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.4476, allocations: 59.92 kB / 0.5125 GB, free: 1.039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008946/0.4485, allocations: 0.7069 MB / 0.5132 GB, free: 328 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4485, allocations: 0 / 0.5132 GB, free: 328 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.003366/0.4519, allocations: 0.9134 MB / 0.5141 GB, free: 15.41 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009881/0.4618, allocations: 4.257 MB / 0.5183 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00368/0.4655, allocations: 1.997 MB / 0.5202 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4655, allocations: 0 / 0.5202 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.4675, allocations: 1.136 MB / 0.5213 GB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.4689, allocations: 228.1 kB / 0.5215 GB, free: 7.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.4806, allocations: 14.23 MB / 0.5354 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/0.4815, allocations: 1.226 MB / 0.5366 GB, free: 7.637 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001514/0.483, allocations: 321.5 kB / 0.5369 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009168/0.484, allocations: 0.6515 MB / 0.5376 GB, free: 6.672 MB / 414.1 MB Notification: Performance of SimCode: time 1.153e-06/0.484, allocations: 0 / 0.5376 GB, free: 6.672 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06857/0.5526, allocations: 42.62 MB / 0.5792 GB, free: 12.29 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.5528, allocations: 217.8 kB / 0.5794 GB, free: 12.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.926/3.479, allocations: 3.938 kB / 0.5794 GB, free: 12.04 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1) Environment - environmentSimulation: