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.00103/0.00103, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.00123/0.00123, allocations: 172.7 kB / 15.95 MB, free: 208 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.33/1.33, allocations: 223.2 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1831/0.1831, allocations: 15.27 MB / 306.3 MB, free: 15.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002993, allocations: 12.2 kB / 371.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2608, allocations: 54.62 MB / 426.2 MB, free: 40.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006686/0.2675, allocations: 7.574 MB / 433.8 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01839/0.2859, allocations: 21.27 MB / 455 MB, free: 22.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001593/0.2875, allocations: 31.19 kB / 455.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2889, allocations: 431.6 kB / 455.5 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004786/0.2938, allocations: 1.712 MB / 457.2 MB, free: 21.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0063/0.3001, allocations: 2.373 MB / 459.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.3023, allocations: 1.948 MB / 461.5 MB, free: 18.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.3037, allocations: 0.992 MB / 462.5 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001311/0.305, allocations: 0.8582 MB / 463.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.3068, allocations: 1.093 MB / 464.5 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004824/0.3073, allocations: 104.7 kB / 464.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006602/0.3139, allocations: 2.298 MB / 466.9 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005493/0.3145, allocations: 375 kB / 467.2 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006456/0.3151, allocations: 320.2 kB / 467.5 MB, free: 16.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005334/0.3205, allocations: 3.477 MB / 471 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3205, allocations: 0 / 471 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3205, allocations: 1.062 kB / 471 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.881e-05/0.3206, allocations: 0 / 471 MB, free: 15.55 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.00558/0.3262, allocations: 2.013 MB / 473 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3262, allocations: 9.625 kB / 473 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005752/0.3268, allocations: 210.4 kB / 473.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001994/0.3288, allocations: 395.8 kB / 473.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.3304, allocations: 0.8139 MB / 474.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.3305, allocations: 164.6 kB / 474.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003982/0.3309, allocations: 158.2 kB / 474.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003731/0.3347, allocations: 2.018 MB / 476.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.471e-05/0.3347, allocations: 5.188 kB / 476.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.3349, allocations: 55.47 kB / 476.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.107e-05/0.3349, allocations: 39.94 kB / 476.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004467/0.3394, allocations: 2.684 MB / 479.6 MB, free: 11.72 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.01134/0.3508, allocations: 6.437 MB / 486 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005242/0.356, allocations: 3.297 MB / 489.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/0.3574, allocations: 0.8856 MB / 490.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009094/0.3665, allocations: 7.076 MB / 497.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.3666, allocations: 43.56 kB / 497.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000877/0.3675, allocations: 154.7 kB / 497.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 4.899e-06/0.3675, allocations: 0 / 497.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02033/0.3878, allocations: 5.436 MB / 0.4911 GB, free: 7.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.3879, allocations: 68.72 kB / 0.4912 GB, free: 7.898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.3892, allocations: 1.026 MB / 0.4922 GB, free: 6.848 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.3894, allocations: 45.7 kB / 0.4922 GB, free: 6.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004585/0.3898, allocations: 0.6816 MB / 0.4929 GB, free: 6.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000436/0.3903, allocations: 485 kB / 0.4933 GB, free: 5.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.3904, allocations: 36 kB / 0.4934 GB, free: 5.586 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3906, allocations: 377.9 kB / 0.4937 GB, free: 5.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.3917, allocations: 0.6364 MB / 0.4943 GB, free: 4.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.3931, allocations: 1.103 MB / 0.4954 GB, free: 3.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.3945, allocations: 0.7871 MB / 0.4962 GB, free: 2.492 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.3945, allocations: 4 kB / 0.4962 GB, free: 2.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006664/0.4012, allocations: 2.411 MB / 0.4986 GB, free: 60 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.4012, allocations: 12 kB / 0.4986 GB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-05/0.4013, allocations: 12 kB / 0.4986 GB, free: 36 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002903/0.4042, allocations: 0.4982 MB / 0.4991 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.4058, allocations: 423.3 kB / 0.4995 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005536/0.4113, allocations: 3.513 MB / 0.5029 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.413, allocations: 83.92 kB / 0.503 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.4133, allocations: 95.91 kB / 0.5031 GB, free: 11.16 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.0008568/0.4142, allocations: 337.2 kB / 0.5034 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/0.4145, allocations: 118.5 kB / 0.5035 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006804/0.4214, allocations: 2.147 MB / 0.5056 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.4214, allocations: 12 kB / 0.5056 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.4214, allocations: 4 kB / 0.5056 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.167e-05/0.4214, allocations: 3.984 kB / 0.5056 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008683/0.4301, allocations: 3.55 MB / 0.5091 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.4302, allocations: 4 kB / 0.5091 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.4314, allocations: 263.7 kB / 0.5093 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002789/0.4342, allocations: 493.9 kB / 0.5098 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001921/0.4344, allocations: 43.97 kB / 0.5099 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005209/0.4397, allocations: 3.426 MB / 0.5132 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4397, allocations: 0 / 0.5132 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007503/0.4472, allocations: 2.736 MB / 0.5159 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004825/0.4477, allocations: 199.5 kB / 0.5161 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003666/0.4481, allocations: 28 kB / 0.5161 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.4491, allocations: 55.92 kB / 0.5161 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/0.4494, allocations: 125.1 kB / 0.5163 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.4496, allocations: 55.97 kB / 0.5163 GB, free: 13.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009713/0.4506, allocations: 0.703 MB / 0.517 GB, free: 12.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4506, allocations: 0 / 0.517 GB, free: 12.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003414/0.454, allocations: 0.9212 MB / 0.5179 GB, free: 11.55 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.01027/0.4643, allocations: 4.26 MB / 0.5221 GB, free: 7.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004047/0.4684, allocations: 1.993 MB / 0.524 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4684, allocations: 4.125 kB / 0.524 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002177/0.4706, allocations: 1.135 MB / 0.5251 GB, free: 4.027 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4722, allocations: 239.1 kB / 0.5253 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01909/0.4913, allocations: 9.246 MB / 0.5344 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009813/0.4924, allocations: 1.191 MB / 0.5355 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001651/0.494, allocations: 325.5 kB / 0.5358 GB, free: 8.504 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/0.4951, allocations: 0.6593 MB / 0.5365 GB, free: 7.844 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4951, allocations: 4 kB / 0.5365 GB, free: 7.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07212/0.5672, allocations: 42.92 MB / 0.5784 GB, free: 13.16 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/0.5675, allocations: 214 kB / 0.5786 GB, free: 12.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/3.518, allocations: 0 / 0.5786 GB, free: 12.92 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: