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: "" <> 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.001122/0.001122, allocations: 108 kB / 15.61 MB, free: 152 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.001082/0.001082, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.135/1.135, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1526/0.1526, allocations: 15.32 MB / 305.7 MB, free: 15.35 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 67.89 kB / 370.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0764/0.07751, allocations: 53.61 MB / 424 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006996/0.08454, allocations: 7.533 MB / 431.6 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1452/0.2297, allocations: 23.31 MB / 454.9 MB, free: 37.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005622/0.2303, allocations: 22.25 kB / 454.9 MB, free: 37.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008086/0.2311, allocations: 486.7 kB / 455.4 MB, free: 37.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002916/0.2341, allocations: 1.933 MB / 457.3 MB, free: 36.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00445/0.2385, allocations: 2.925 MB / 460.2 MB, free: 34.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.2397, allocations: 2.109 MB / 462.4 MB, free: 34.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008107/0.2405, allocations: 1.237 MB / 463.6 MB, free: 34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005874/0.2411, allocations: 1.06 MB / 464.7 MB, free: 33.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009165/0.242, allocations: 1.215 MB / 465.9 MB, free: 33.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.2423, allocations: 190 kB / 466.1 MB, free: 33.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004353/0.2466, allocations: 2.506 MB / 468.6 MB, free: 32.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002687/0.2469, allocations: 480.6 kB / 469 MB, free: 32.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005575/0.2475, allocations: 0.941 MB / 470 MB, free: 31.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004262/0.2517, allocations: 4.66 MB / 474.6 MB, free: 29.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2517, allocations: 0 / 474.6 MB, free: 29.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2518, allocations: 0 / 474.6 MB, free: 29.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.2518, allocations: 1.219 kB / 474.6 MB, free: 29.62 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.003543/0.2553, allocations: 2.406 MB / 477 MB, free: 28.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.2554, allocations: 12.62 kB / 477.1 MB, free: 28.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001906/0.2556, allocations: 208.9 kB / 477.3 MB, free: 28.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.257, allocations: 399.6 kB / 477.6 MB, free: 27.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.258, allocations: 0.8632 MB / 478.5 MB, free: 27.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.2581, allocations: 166.2 kB / 478.7 MB, free: 27.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.2583, allocations: 148.2 kB / 478.8 MB, free: 27.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002607/0.2609, allocations: 2.036 MB / 480.9 MB, free: 26.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.261, allocations: 0 / 480.9 MB, free: 26.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.2611, allocations: 57.78 kB / 480.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.2611, allocations: 34.91 kB / 480.9 MB, free: 26.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003314/0.2645, allocations: 2.695 MB / 483.6 MB, free: 25.59 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.008431/0.2729, allocations: 6.519 MB / 490.2 MB, free: 21.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004358/0.2773, allocations: 3.313 MB / 493.5 MB, free: 20.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.2783, allocations: 0.8854 MB / 494.4 MB, free: 20.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007129/0.2855, allocations: 7.2 MB / 0.4898 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.2855, allocations: 46.2 kB / 0.4898 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005418/0.2861, allocations: 170.5 kB / 0.49 GB, free: 14.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 2.465e-06/0.2861, allocations: 0 / 0.49 GB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01621/0.3023, allocations: 5.418 MB / 0.4953 GB, free: 11.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.214e-05/0.3023, allocations: 64.72 kB / 0.4954 GB, free: 11.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007531/0.3031, allocations: 1.026 MB / 0.4964 GB, free: 10.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.854e-05/0.3031, allocations: 49.7 kB / 0.4964 GB, free: 10.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.3034, allocations: 0.6816 MB / 0.4971 GB, free: 9.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.3036, allocations: 493 kB / 0.4975 GB, free: 9.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003484/0.3039, allocations: 331.3 kB / 0.4979 GB, free: 8.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.811e-05/0.304, allocations: 301.1 kB / 0.4981 GB, free: 8.383 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008042/0.3048, allocations: 0.6481 MB / 0.4988 GB, free: 7.734 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009339/0.3057, allocations: 1.11 MB / 0.4999 GB, free: 6.434 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.3075, allocations: 1.803 MB / 0.5016 GB, free: 4.441 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3075, allocations: 4 kB / 0.5016 GB, free: 4.438 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005026/0.3126, allocations: 2.411 MB / 0.504 GB, free: 2.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3126, allocations: 18.06 kB / 0.504 GB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.3126, allocations: 16 kB / 0.504 GB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002238/0.3148, allocations: 490.1 kB / 0.5045 GB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.316, allocations: 411.4 kB / 0.5049 GB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00447/0.3204, allocations: 3.868 MB / 0.5087 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008658/0.3213, allocations: 63.98 kB / 0.5087 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.3215, allocations: 99.95 kB / 0.5088 GB, free: 12.79 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.0004366/0.3219, allocations: 334.4 kB / 0.5091 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.3221, allocations: 122.4 kB / 0.5092 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005669/0.3278, allocations: 2.13 MB / 0.5113 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.3278, allocations: 15.94 kB / 0.5113 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3278, allocations: 7.938 kB / 0.5113 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.3279, allocations: 7.969 kB / 0.5114 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006868/0.3347, allocations: 3.55 MB / 0.5148 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3347, allocations: 0 / 0.5148 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009575/0.3357, allocations: 271.6 kB / 0.5151 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/0.338, allocations: 470 kB / 0.5155 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-05/0.3381, allocations: 47.97 kB / 0.5156 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004219/0.3424, allocations: 3.772 MB / 0.5193 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3424, allocations: 4.062 kB / 0.5193 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005965/0.3484, allocations: 2.743 MB / 0.5219 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.3485, allocations: 183.6 kB / 0.5221 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.3487, allocations: 31.94 kB / 0.5221 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.3494, allocations: 28 kB / 0.5222 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.3496, allocations: 129.1 kB / 0.5223 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.062e-05/0.3497, allocations: 55.97 kB / 0.5224 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006665/0.3504, allocations: 0.7069 MB / 0.523 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3504, allocations: 0 / 0.523 GB, free: 13.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00208/0.3524, allocations: 0.9407 MB / 0.524 GB, free: 12.84 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.007588/0.36, allocations: 4.294 MB / 0.5282 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004246/0.3643, allocations: 2.157 MB / 0.5303 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3643, allocations: 4 kB / 0.5303 GB, free: 6.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.3659, allocations: 1.135 MB / 0.5314 GB, free: 5.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.367, allocations: 268 kB / 0.5316 GB, free: 4.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/0.3864, allocations: 12.87 MB / 0.5442 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006258/0.3871, allocations: 1.183 MB / 0.5454 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.3882, allocations: 333.3 kB / 0.5457 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007659/0.389, allocations: 0.6585 MB / 0.5463 GB, free: 5.07 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.389, allocations: 0 / 0.5463 GB, free: 5.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06457/0.4536, allocations: 45.13 MB / 0.5904 GB, free: 8.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.24, allocations: 8.062 kB / 0.5904 GB, free: 8.152 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/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)