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.0008769/0.000877, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005183/0.005183, allocations: 169.6 kB / 16.27 MB, free: 6.355 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.265/1.265, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1737/0.1737, allocations: 15.27 MB / 306.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 8 kB / 372.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2599, allocations: 54.62 MB / 426.8 MB, free: 40.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006497/0.2665, allocations: 8.079 MB / 434.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01881/0.2854, allocations: 23.01 MB / 457.9 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.2867, allocations: 29.78 kB / 457.9 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.2877, allocations: 445.1 kB / 458.4 MB, free: 20.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004263/0.292, allocations: 1.722 MB / 460.1 MB, free: 19.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006477/0.2985, allocations: 2.557 MB / 462.7 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002033/0.3005, allocations: 2.06 MB / 464.7 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/0.3017, allocations: 1.031 MB / 465.7 MB, free: 16.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.3031, allocations: 1.003 MB / 466.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.3048, allocations: 1.132 MB / 467.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.305, allocations: 104.5 kB / 468 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007435/0.3125, allocations: 2.442 MB / 470.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004531/0.3129, allocations: 388.5 kB / 470.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001441/0.3144, allocations: 0.8746 MB / 471.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00949/0.3239, allocations: 4.346 MB / 476 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3239, allocations: 1.5 kB / 476 MB, free: 12.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.3239, allocations: 0.5625 kB / 476 MB, free: 12.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.154e-05/0.324, allocations: 7.938 kB / 476 MB, free: 12.59 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.005763/0.3298, allocations: 2.008 MB / 478 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3299, allocations: 10.06 kB / 478.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006373/0.3305, allocations: 213.4 kB / 478.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/0.3327, allocations: 396.9 kB / 478.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.3344, allocations: 0.8349 MB / 479.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.3346, allocations: 167.7 kB / 479.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004863/0.3351, allocations: 153.5 kB / 479.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003495/0.3386, allocations: 2.028 MB / 481.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/0.3387, allocations: 5.266 kB / 481.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/0.3388, allocations: 63.91 kB / 481.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/0.3389, allocations: 35.31 kB / 481.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004912/0.3438, allocations: 2.694 MB / 484.6 MB, free: 8.738 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.01116/0.355, allocations: 6.433 MB / 491.1 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004262/0.3593, allocations: 3.306 MB / 494.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3604, allocations: 0.8909 MB / 495.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009068/0.3694, allocations: 7.076 MB / 0.4906 GB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.3695, allocations: 43.56 kB / 0.4906 GB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008377/0.3703, allocations: 166.6 kB / 0.4908 GB, free: 8.859 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 4.088e-06/0.3704, allocations: 4 kB / 0.4908 GB, free: 8.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0213/0.3917, allocations: 5.451 MB / 0.4961 GB, free: 3.305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.3917, allocations: 64.72 kB / 0.4961 GB, free: 3.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.393, allocations: 1.034 MB / 0.4972 GB, free: 2.168 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.3931, allocations: 49.7 kB / 0.4972 GB, free: 2.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004082/0.3935, allocations: 0.6777 MB / 0.4979 GB, free: 1.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003547/0.3939, allocations: 485 kB / 0.4983 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.3941, allocations: 137.6 kB / 0.4985 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.725e-05/0.3941, allocations: 301.1 kB / 0.4987 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.3952, allocations: 0.652 MB / 0.4994 GB, free: 15.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.3965, allocations: 1.11 MB / 0.5005 GB, free: 14.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.399, allocations: 1.8 MB / 0.5022 GB, free: 12.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.399, allocations: 8 kB / 0.5022 GB, free: 12.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006725/0.4057, allocations: 2.427 MB / 0.5046 GB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4058, allocations: 12 kB / 0.5046 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.4058, allocations: 12 kB / 0.5046 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003019/0.4088, allocations: 0.4902 MB / 0.5051 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.4103, allocations: 419.3 kB / 0.5055 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.4156, allocations: 3.518 MB / 0.5089 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.417, allocations: 87.88 kB / 0.509 GB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.4172, allocations: 95.95 kB / 0.5091 GB, free: 5.207 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.0006047/0.4178, allocations: 341.2 kB / 0.5094 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.418, allocations: 122.4 kB / 0.5096 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006781/0.4248, allocations: 2.148 MB / 0.5117 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.4248, allocations: 16 kB / 0.5117 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4248, allocations: 0 / 0.5117 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.4248, allocations: 7.969 kB / 0.5117 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008167/0.433, allocations: 3.554 MB / 0.5151 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.433, allocations: 4 kB / 0.5152 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.4341, allocations: 267.7 kB / 0.5154 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003076/0.4372, allocations: 478.1 kB / 0.5159 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.4373, allocations: 51.95 kB / 0.5159 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004837/0.4422, allocations: 3.425 MB / 0.5193 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4422, allocations: 7.922 kB / 0.5193 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007048/0.4493, allocations: 2.755 MB / 0.522 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003724/0.4496, allocations: 195.5 kB / 0.5221 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.4498, allocations: 28 kB / 0.5222 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008214/0.4506, allocations: 59.89 kB / 0.5222 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.4509, allocations: 125.1 kB / 0.5223 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.4511, allocations: 51.97 kB / 0.5224 GB, free: 7.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007969/0.4519, allocations: 0.7147 MB / 0.5231 GB, free: 6.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4519, allocations: 0 / 0.5231 GB, free: 6.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002605/0.4545, allocations: 0.933 MB / 0.524 GB, free: 5.527 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.009327/0.4638, allocations: 4.303 MB / 0.5282 GB, free: 1.184 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003364/0.4672, allocations: 1.993 MB / 0.5302 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4672, allocations: 0 / 0.5302 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.469, allocations: 1.151 MB / 0.5313 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.4703, allocations: 235.9 kB / 0.5315 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/0.494, allocations: 13.61 MB / 0.5448 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006922/0.4947, allocations: 1.187 MB / 0.546 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001384/0.4961, allocations: 333.4 kB / 0.5463 GB, free: 13.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000868/0.497, allocations: 0.6554 MB / 0.5469 GB, free: 13.17 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.497, allocations: 0 / 0.5469 GB, free: 13.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06378/0.5608, allocations: 43.54 MB / 0.5894 GB, free: 1.875 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.561, allocations: 227.5 kB / 0.5896 GB, free: 1.617 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.97/3.531, allocations: 0 / 0.5896 GB, free: 1.617 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)