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.006899/0.006899, allocations: 104.1 kB / 15.74 MB, free: 6.039 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.001652/0.001652, allocations: 196.2 kB / 16.67 MB, free: 5.957 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07935/0.07935, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 64.11 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09846, allocations: 53.61 MB / 478.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.009128/0.1076, allocations: 7.548 MB / 485.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0265/0.1342, allocations: 23.31 MB / 0.4972 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.1354, allocations: 19.88 kB / 0.4972 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.137, allocations: 487.8 kB / 0.4977 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005558/0.1426, allocations: 1.944 MB / 0.4996 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007608/0.1503, allocations: 2.916 MB / 0.5025 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2104/0.3606, allocations: 2.119 MB / 0.5045 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/0.3625, allocations: 1.237 MB / 0.5057 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.3641, allocations: 1.067 MB / 0.5068 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.3661, allocations: 1.209 MB / 0.508 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004405/0.3665, allocations: 191.4 kB / 0.5081 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007181/0.3737, allocations: 2.514 MB / 0.5106 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007156/0.3745, allocations: 474.9 kB / 0.511 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.3759, allocations: 0.95 MB / 0.512 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.3864, allocations: 4.689 MB / 0.5166 GB, free: 4.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3864, allocations: 0 / 0.5166 GB, free: 4.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3864, allocations: 3.562 kB / 0.5166 GB, free: 4.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.99e-05/0.3865, allocations: 0 / 0.5166 GB, free: 4.547 MB / 382.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.006209/0.3927, allocations: 2.394 MB / 0.5189 GB, free: 3.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3928, allocations: 8.812 kB / 0.5189 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003123/0.3931, allocations: 215.8 kB / 0.5191 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/0.395, allocations: 387.5 kB / 0.5195 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001881/0.3969, allocations: 0.8937 MB / 0.5204 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.3971, allocations: 171.7 kB / 0.5205 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003489/0.3975, allocations: 150 kB / 0.5207 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003506/0.401, allocations: 2.033 MB / 0.5226 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/0.401, allocations: 0.7969 kB / 0.5226 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.4012, allocations: 58.38 kB / 0.5227 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.461e-05/0.4012, allocations: 42.23 kB / 0.5227 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003788/0.405, allocations: 2.696 MB / 0.5254 GB, free: 1.902 MB / 382.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.01081/0.4159, allocations: 6.474 MB / 0.5317 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00478/0.4207, allocations: 3.316 MB / 0.5349 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.422, allocations: 0.8847 MB / 0.5358 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.4325, allocations: 7.204 MB / 0.5428 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.4325, allocations: 47.41 kB / 0.5429 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009886/0.4335, allocations: 177.6 kB / 0.543 GB, free: 6.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 7.294e-06/0.4336, allocations: 0 / 0.543 GB, free: 6.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02199/0.4556, allocations: 5.393 MB / 0.5483 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.4556, allocations: 72.7 kB / 0.5484 GB, free: 500 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.457, allocations: 1.038 MB / 0.5494 GB, free: 15.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.4572, allocations: 49.7 kB / 0.5494 GB, free: 15.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004552/0.4577, allocations: 0.6723 MB / 0.5501 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004929/0.4582, allocations: 485.7 kB / 0.5506 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005642/0.4588, allocations: 335.3 kB / 0.5509 GB, free: 13.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.4589, allocations: 301.1 kB / 0.5512 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.46, allocations: 0.652 MB / 0.5518 GB, free: 12.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.4615, allocations: 1.108 MB / 0.5529 GB, free: 11.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/0.4642, allocations: 1.803 MB / 0.5547 GB, free: 9.703 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.4642, allocations: 8 kB / 0.5547 GB, free: 9.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007129/0.4714, allocations: 2.401 MB / 0.557 GB, free: 7.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.4714, allocations: 12.06 kB / 0.557 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.398e-05/0.4715, allocations: 20 kB / 0.557 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002977/0.4745, allocations: 491.4 kB / 0.5575 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.4761, allocations: 416.1 kB / 0.5579 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005828/0.4819, allocations: 3.869 MB / 0.5617 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.4836, allocations: 55.94 kB / 0.5617 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002885/0.4839, allocations: 100 kB / 0.5618 GB, free: 2.191 MB / 414.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.0008089/0.4847, allocations: 333.6 kB / 0.5621 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003828/0.4851, allocations: 118.5 kB / 0.5623 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006805/0.4919, allocations: 2.135 MB / 0.5643 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.4919, allocations: 12 kB / 0.5644 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.492, allocations: 11.94 kB / 0.5644 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.289e-05/0.492, allocations: 7.969 kB / 0.5644 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008958/0.501, allocations: 3.541 MB / 0.5678 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.501, allocations: 0 / 0.5678 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.5022, allocations: 274 kB / 0.5681 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/0.505, allocations: 466 kB / 0.5685 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002147/0.5053, allocations: 54.86 kB / 0.5686 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005347/0.5106, allocations: 3.775 MB / 0.5723 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.5107, allocations: 0 / 0.5723 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00751/0.5182, allocations: 2.744 MB / 0.575 GB, free: 4.445 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000438/0.5187, allocations: 191.5 kB / 0.5751 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003609/0.519, allocations: 31.94 kB / 0.5752 GB, free: 4.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009386/0.52, allocations: 27.98 kB / 0.5752 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003144/0.5203, allocations: 129.1 kB / 0.5753 GB, free: 4.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.5205, allocations: 55.95 kB / 0.5754 GB, free: 4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009667/0.5214, allocations: 0.7107 MB / 0.5761 GB, free: 3.277 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5214, allocations: 0 / 0.5761 GB, free: 3.277 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003313/0.5248, allocations: 0.9447 MB / 0.577 GB, free: 2.332 MB / 430.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.01049/0.5353, allocations: 4.298 MB / 0.5812 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004259/0.5396, allocations: 1.995 MB / 0.5831 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.5396, allocations: 0 / 0.5831 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002129/0.5417, allocations: 1.152 MB / 0.5843 GB, free: 10.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.5435, allocations: 259.5 kB / 0.5845 GB, free: 10.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0276/0.5711, allocations: 12.24 MB / 0.5965 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.5722, allocations: 1.187 MB / 0.5976 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001343/0.5736, allocations: 329.5 kB / 0.5979 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.5747, allocations: 0.6631 MB / 0.5986 GB, free: 11.85 MB / 462.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5747, allocations: 0 / 0.5986 GB, free: 11.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0867/0.6614, allocations: 46.25 MB / 0.6438 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.83, allocations: 8.062 kB / 0.6438 GB, free: 13.95 MB / 0.4981 GB (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)