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.005247/0.005247, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001189/0.001189, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08783/0.08783, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 67.89 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.098, allocations: 53.61 MB / 478.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.008378/0.1064, allocations: 7.548 MB / 485.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02732/0.1338, allocations: 23.32 MB / 0.4972 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.1349, allocations: 19.88 kB / 0.4972 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1364, allocations: 475.9 kB / 0.4977 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006157/0.1426, allocations: 1.968 MB / 0.4996 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007287/0.15, allocations: 2.932 MB / 0.5025 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2437/0.3937, allocations: 2.132 MB / 0.5046 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002151/0.3958, allocations: 1.23 MB / 0.5058 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001972/0.3978, allocations: 1.071 MB / 0.5068 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.4004, allocations: 1.205 MB / 0.508 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007216/0.4011, allocations: 191.4 kB / 0.5082 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01175/0.4129, allocations: 2.519 MB / 0.5106 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.414, allocations: 477.8 kB / 0.5111 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002376/0.4164, allocations: 0.9418 MB / 0.512 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0146/0.431, allocations: 4.694 MB / 0.5166 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4311, allocations: 1.5 kB / 0.5166 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4311, allocations: 0.8438 kB / 0.5166 GB, free: 4.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.643e-05/0.4312, allocations: 0.6562 kB / 0.5166 GB, free: 4.586 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.007167/0.4384, allocations: 2.391 MB / 0.5189 GB, free: 3.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.4384, allocations: 9.938 kB / 0.5189 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003706/0.4388, allocations: 218.5 kB / 0.5191 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001997/0.4408, allocations: 389.4 kB / 0.5195 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001582/0.4424, allocations: 0.8923 MB / 0.5204 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.4426, allocations: 168.5 kB / 0.5205 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.4428, allocations: 151 kB / 0.5207 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003366/0.4462, allocations: 2.034 MB / 0.5227 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.4463, allocations: 3.375 kB / 0.5227 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.4464, allocations: 60.41 kB / 0.5227 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.385e-05/0.4465, allocations: 35.41 kB / 0.5228 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003832/0.4503, allocations: 2.695 MB / 0.5254 GB, free: 1.926 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.01052/0.4609, allocations: 6.482 MB / 0.5317 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/0.4657, allocations: 3.322 MB / 0.535 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.467, allocations: 0.8885 MB / 0.5358 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009522/0.4765, allocations: 7.197 MB / 0.5429 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.4766, allocations: 46.94 kB / 0.5429 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007884/0.4774, allocations: 168.8 kB / 0.5431 GB, free: 6.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 3.106e-06/0.4774, allocations: 0 / 0.5431 GB, free: 6.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.0208/0.4982, allocations: 5.408 MB / 0.5484 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.4983, allocations: 68.72 kB / 0.5484 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.4996, allocations: 1.03 MB / 0.5494 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.4997, allocations: 49.7 kB / 0.5495 GB, free: 15.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.5002, allocations: 0.6762 MB / 0.5501 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003929/0.5006, allocations: 487.1 kB / 0.5506 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005038/0.5011, allocations: 331.2 kB / 0.5509 GB, free: 13.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.5012, allocations: 305.1 kB / 0.5512 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.5023, allocations: 0.6481 MB / 0.5518 GB, free: 12.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.5037, allocations: 1.116 MB / 0.5529 GB, free: 11.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002556/0.5062, allocations: 1.795 MB / 0.5547 GB, free: 9.719 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.5063, allocations: 8 kB / 0.5547 GB, free: 9.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006725/0.513, allocations: 2.409 MB / 0.5571 GB, free: 7.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.5131, allocations: 20.06 kB / 0.5571 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.681e-05/0.5131, allocations: 16 kB / 0.5571 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002937/0.516, allocations: 481.5 kB / 0.5575 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.5177, allocations: 420.3 kB / 0.5579 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005942/0.5236, allocations: 3.862 MB / 0.5617 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.5253, allocations: 59.98 kB / 0.5618 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/0.5256, allocations: 104 kB / 0.5619 GB, free: 2.199 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.0006911/0.5263, allocations: 329.1 kB / 0.5622 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003011/0.5266, allocations: 122.5 kB / 0.5623 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006542/0.5332, allocations: 2.13 MB / 0.5644 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.5332, allocations: 15.94 kB / 0.5644 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5332, allocations: 11.19 kB / 0.5644 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.5332, allocations: 7.969 kB / 0.5644 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008352/0.5416, allocations: 3.538 MB / 0.5679 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.5416, allocations: 0 / 0.5679 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.5428, allocations: 277.8 kB / 0.5681 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002723/0.5455, allocations: 462 kB / 0.5686 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.5457, allocations: 43.97 kB / 0.5686 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005028/0.5507, allocations: 3.779 MB / 0.5723 GB, free: 7.227 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5507, allocations: 4.062 kB / 0.5723 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007146/0.5579, allocations: 2.747 MB / 0.575 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004268/0.5584, allocations: 187.6 kB / 0.5752 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.5586, allocations: 35.88 kB / 0.5752 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007545/0.5593, allocations: 28 kB / 0.5752 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003315/0.5597, allocations: 125.1 kB / 0.5754 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.5598, allocations: 55.97 kB / 0.5754 GB, free: 4.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000869/0.5607, allocations: 0.7069 MB / 0.5761 GB, free: 3.301 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5607, allocations: 0 / 0.5761 GB, free: 3.301 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003096/0.5638, allocations: 0.9447 MB / 0.577 GB, free: 2.355 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.01089/0.5747, allocations: 4.306 MB / 0.5812 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004409/0.5791, allocations: 2.001 MB / 0.5832 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5792, allocations: 0.5 kB / 0.5832 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002228/0.5814, allocations: 1.143 MB / 0.5843 GB, free: 11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.5831, allocations: 265 kB / 0.5846 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02507/0.6082, allocations: 12.25 MB / 0.5965 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007827/0.609, allocations: 1.187 MB / 0.5977 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.6102, allocations: 318.1 kB / 0.598 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009353/0.6112, allocations: 0.6632 MB / 0.5986 GB, free: 11.87 MB / 462.1 MB Notification: Performance of SimCode: time 2.224e-06/0.6112, allocations: 0 / 0.5986 GB, free: 11.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08705/0.6982, allocations: 45.58 MB / 0.6431 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/15.64, allocations: 4.062 kB / 0.6431 GB, free: 14.64 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)