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.007657/0.007657, allocations: 97.92 kB / 15.73 MB, free: 6.004 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.001866/0.001866, allocations: 197.6 kB / 16.67 MB, free: 5.922 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.192/0.192, allocations: 15.31 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002048, allocations: 63.91 kB / 424.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2487, allocations: 53.61 MB / 478.3 MB, free: 25.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.007447/0.2562, allocations: 7.551 MB / 485.9 MB, free: 20.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02087/0.2771, allocations: 23.32 MB / 0.4973 GB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.2784, allocations: 15.62 kB / 0.4973 GB, free: 1.266 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.2798, allocations: 488.8 kB / 0.4977 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006461/0.2864, allocations: 1.936 MB / 0.4996 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009173/0.2956, allocations: 2.911 MB / 0.5025 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003913/0.2995, allocations: 2.128 MB / 0.5046 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002088/0.3016, allocations: 1.247 MB / 0.5058 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.3037, allocations: 1.064 MB / 0.5068 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002529/0.3062, allocations: 1.215 MB / 0.508 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006335/0.3069, allocations: 192 kB / 0.5082 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009281/0.3161, allocations: 2.512 MB / 0.5106 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001097/0.3173, allocations: 470.7 kB / 0.5111 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002105/0.3194, allocations: 0.949 MB / 0.512 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.3325, allocations: 4.708 MB / 0.5166 GB, free: 15.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3325, allocations: 0 / 0.5166 GB, free: 15.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.3326, allocations: 4 kB / 0.5166 GB, free: 15.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.259e-05/0.3326, allocations: 0 / 0.5166 GB, free: 15.7 MB / 398.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.005675/0.3383, allocations: 2.456 MB / 0.519 GB, free: 13.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.3384, allocations: 12.03 kB / 0.519 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000273/0.3387, allocations: 211.5 kB / 0.5192 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001751/0.3404, allocations: 407.2 kB / 0.5196 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.3419, allocations: 0.8899 MB / 0.5205 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.3421, allocations: 166.9 kB / 0.5206 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002586/0.3424, allocations: 160.2 kB / 0.5208 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003345/0.3457, allocations: 2.029 MB / 0.5228 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.3458, allocations: 0 / 0.5228 GB, free: 9.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.3459, allocations: 60 kB / 0.5228 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-05/0.346, allocations: 36 kB / 0.5229 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004332/0.3503, allocations: 2.697 MB / 0.5255 GB, free: 6.434 MB / 398.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.01175/0.3621, allocations: 6.473 MB / 0.5318 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005554/0.3677, allocations: 3.322 MB / 0.5351 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.3693, allocations: 0.8948 MB / 0.5359 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01088/0.3802, allocations: 7.19 MB / 0.543 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.3803, allocations: 47.5 kB / 0.543 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008095/0.3812, allocations: 171 kB / 0.5432 GB, free: 3.234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 6.142e-06/0.3812, allocations: 4 kB / 0.5432 GB, free: 3.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02112/0.4023, allocations: 5.427 MB / 0.5485 GB, free: 13.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.88e-05/0.4024, allocations: 72.66 kB / 0.5485 GB, free: 13.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.4038, allocations: 1.038 MB / 0.5496 GB, free: 12.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/0.404, allocations: 45.7 kB / 0.5496 GB, free: 12.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005324/0.4045, allocations: 0.6955 MB / 0.5503 GB, free: 11.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004923/0.405, allocations: 0.4997 MB / 0.5508 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005228/0.4055, allocations: 331.4 kB / 0.5511 GB, free: 10.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4057, allocations: 305.1 kB / 0.5514 GB, free: 10.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.4068, allocations: 0.652 MB / 0.552 GB, free: 10.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.4084, allocations: 1.103 MB / 0.5531 GB, free: 8.715 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002771/0.4111, allocations: 1.808 MB / 0.5549 GB, free: 6.715 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/0.4112, allocations: 4 kB / 0.5549 GB, free: 6.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.00671/0.4179, allocations: 2.42 MB / 0.5572 GB, free: 4.273 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.4179, allocations: 15.98 kB / 0.5572 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.418, allocations: 12 kB / 0.5572 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002774/0.4207, allocations: 494.1 kB / 0.5577 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/0.4223, allocations: 415.4 kB / 0.5581 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.428, allocations: 3.873 MB / 0.5619 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.4293, allocations: 55.98 kB / 0.5619 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/0.4295, allocations: 95.97 kB / 0.562 GB, free: 15.05 MB / 446.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.0006209/0.4301, allocations: 333.4 kB / 0.5624 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002665/0.4304, allocations: 127.2 kB / 0.5625 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006481/0.4369, allocations: 2.133 MB / 0.5646 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.4369, allocations: 15.94 kB / 0.5646 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.4369, allocations: 8 kB / 0.5646 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.4369, allocations: 7.969 kB / 0.5646 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008351/0.4453, allocations: 3.543 MB / 0.5681 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.4453, allocations: 4 kB / 0.5681 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.4465, allocations: 275.7 kB / 0.5683 GB, free: 8.523 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/0.4492, allocations: 474 kB / 0.5688 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.4493, allocations: 43.97 kB / 0.5688 GB, free: 8.008 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005322/0.4546, allocations: 3.783 MB / 0.5725 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4547, allocations: 0 / 0.5725 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007342/0.462, allocations: 2.754 MB / 0.5752 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/0.4624, allocations: 196.2 kB / 0.5754 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.4626, allocations: 31.94 kB / 0.5754 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007022/0.4633, allocations: 31.98 kB / 0.5754 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003061/0.4636, allocations: 117.1 kB / 0.5756 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.4638, allocations: 63.95 kB / 0.5756 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009068/0.4647, allocations: 0.707 MB / 0.5763 GB, free: 15.99 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4647, allocations: 0 / 0.5763 GB, free: 15.99 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002504/0.4672, allocations: 0.9584 MB / 0.5772 GB, free: 15.03 MB / 462.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.009624/0.4768, allocations: 4.308 MB / 0.5815 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003815/0.4807, allocations: 2.012 MB / 0.5834 GB, free: 8.621 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4807, allocations: 0 / 0.5834 GB, free: 8.621 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.4828, allocations: 1.143 MB / 0.5845 GB, free: 7.434 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.4841, allocations: 258.8 kB / 0.5848 GB, free: 7.188 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02417/0.5082, allocations: 12.31 MB / 0.5968 GB, free: 10.35 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008603/0.5091, allocations: 1.183 MB / 0.598 GB, free: 9.133 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001215/0.5104, allocations: 333.2 kB / 0.5983 GB, free: 8.809 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009478/0.5113, allocations: 0.6554 MB / 0.5989 GB, free: 8.152 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5113, allocations: 0 / 0.5989 GB, free: 8.152 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2701/0.7815, allocations: 45.58 MB / 0.6434 GB, free: 103.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.67, allocations: 15.77 kB / 0.6434 GB, free: 103.3 MB / 478.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)