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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.1062/0.1062, allocations: 15.26 MB / 30.21 MB, free: 3.301 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 173.3 kB / 35.29 MB, free: 2.379 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.2 MB / 263.4 MB, free: 6.863 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009047/0.0009048, allocations: 101.3 kB / 318.8 MB, free: 3.863 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003154, allocations: 8.281 kB / 384 MB, free: 50.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1123, allocations: 54.64 MB / 438.7 MB, free: 380 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4081/0.5205, allocations: 103.4 MB / 0.5293 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5209, allocations: 72.03 kB / 0.5294 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1521/0.673, allocations: 65.29 MB / 0.5931 GB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.6731, allocations: 4 kB / 0.5931 GB, free: 11.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.949e-05/0.6731, allocations: 28 kB / 0.5932 GB, free: 11.26 MB / 394.7 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.005383/0.6785, allocations: 1.975 MB / 0.5951 GB, free: 9.336 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.6786, allocations: 12.03 kB / 0.5951 GB, free: 9.324 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003914/0.679, allocations: 208.6 kB / 0.5953 GB, free: 9.199 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001891/0.6809, allocations: 442.3 kB / 0.5957 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/0.6833, allocations: 0.984 MB / 0.5967 GB, free: 8.023 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.6835, allocations: 166.1 kB / 0.5969 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002813/0.6838, allocations: 147.9 kB / 0.597 GB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004448/0.6882, allocations: 2.837 MB / 0.5998 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.6883, allocations: 0 / 0.5998 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.6884, allocations: 56 kB / 0.5998 GB, free: 4.812 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.6885, allocations: 39.94 kB / 0.5999 GB, free: 4.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.6944, allocations: 4.122 MB / 0.6039 GB, free: 0.6445 MB / 394.7 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.01496/0.7094, allocations: 8.286 MB / 0.612 GB, free: 8.137 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005321/0.7147, allocations: 3.823 MB / 0.6157 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006753/0.7154, allocations: 421 kB / 0.6161 GB, free: 3.809 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.7155, allocations: 52.5 kB / 0.6162 GB, free: 3.75 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00155/0.717, allocations: 218.5 kB / 0.6164 GB, free: 3.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 4.138e-06/0.717, allocations: 0 / 0.6164 GB, free: 3.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=219): time 0.03327/0.7503, allocations: 11.03 MB / 0.6271 GB, free: 8.398 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.7504, allocations: 73.41 kB / 0.6272 GB, free: 8.316 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.7518, allocations: 0.9648 MB / 0.6282 GB, free: 7.344 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004619/0.7522, allocations: 61.7 kB / 0.6282 GB, free: 7.277 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003932/0.7526, allocations: 0.5246 MB / 0.6287 GB, free: 6.742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000736/0.7534, allocations: 0.7276 MB / 0.6294 GB, free: 6.004 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.7535, allocations: 44 kB / 0.6295 GB, free: 5.961 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.7537, allocations: 377.9 kB / 0.6298 GB, free: 5.586 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.7557, allocations: 1.402 MB / 0.6312 GB, free: 4.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002136/0.7578, allocations: 1.635 MB / 0.6328 GB, free: 2.473 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002229/0.76, allocations: 1.517 MB / 0.6343 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.7601, allocations: 4 kB / 0.6343 GB, free: 0.957 MB / 426.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.009696/0.7698, allocations: 3.997 MB / 0.6382 GB, free: 12.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.7698, allocations: 10.19 kB / 0.6382 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.7699, allocations: 4 kB / 0.6382 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004325/0.7742, allocations: 0.7524 MB / 0.6389 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002258/0.7765, allocations: 447.4 kB / 0.6394 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00704/0.7835, allocations: 4.507 MB / 0.6438 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/0.7858, allocations: 87.8 kB / 0.6439 GB, free: 6.832 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002376/0.786, allocations: 87.94 kB / 0.6439 GB, free: 6.746 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (239): * Single equations (assignments): 235 * 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: 3 * 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: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009305/0.787, allocations: 349.4 kB / 0.6443 GB, free: 6.395 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003181/0.7873, allocations: 134.4 kB / 0.6444 GB, free: 6.262 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009977/0.7973, allocations: 4.041 MB / 0.6483 GB, free: 2.188 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.7973, allocations: 24 kB / 0.6484 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.7974, allocations: 0 / 0.6484 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-05/0.7974, allocations: 11.95 kB / 0.6484 GB, free: 2.152 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/0.8133, allocations: 8.27 MB / 0.6565 GB, free: 9.715 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/0.8134, allocations: 8 kB / 0.6565 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.8154, allocations: 411.3 kB / 0.6569 GB, free: 9.305 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004154/0.8196, allocations: 0.7523 MB / 0.6576 GB, free: 8.539 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004387/0.82, allocations: 63.95 kB / 0.6577 GB, free: 8.477 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006624/0.8267, allocations: 4.474 MB / 0.662 GB, free: 3.711 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.8267, allocations: 11.94 kB / 0.662 GB, free: 3.699 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/0.8399, allocations: 6.279 MB / 0.6682 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006497/0.8406, allocations: 223.3 kB / 0.6684 GB, free: 12.88 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004508/0.8411, allocations: 55.98 kB / 0.6684 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/0.8423, allocations: 75.97 kB / 0.6685 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/0.8427, allocations: 193.5 kB / 0.6687 GB, free: 12.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/0.8429, allocations: 83.95 kB / 0.6688 GB, free: 12.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009889/0.8439, allocations: 0.7646 MB / 0.6695 GB, free: 11.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8439, allocations: 0 / 0.6695 GB, free: 11.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003479/0.8474, allocations: 1.085 MB / 0.6706 GB, free: 10.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (228): * Single equations (assignments): 224 * 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: 3 * 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: 2 {1 3,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01617/0.8636, allocations: 10.01 MB / 0.6803 GB, free: 388 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2501/1.114, allocations: 3.583 MB / 0.6838 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/1.114, allocations: 1.875 kB / 0.6838 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00333/1.117, allocations: 2.028 MB / 0.6858 GB, free: 108 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/1.119, allocations: 280.5 kB / 0.6861 GB, free: 108 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/1.129, allocations: 8.852 MB / 0.6947 GB, free: 102.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/1.13, allocations: 1.288 MB / 0.696 GB, free: 101.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001668/1.132, allocations: 301.4 kB / 0.6963 GB, free: 101.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/1.133, allocations: 0.6491 MB / 0.6969 GB, free: 101.6 MB / 474.7 MB Notification: Performance of SimCode: time 8.32e-07/1.133, allocations: 1.031 kB / 0.6969 GB, free: 101.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08938/1.223, allocations: 52.38 MB / 0.7481 GB, free: 96.16 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/1.223, allocations: 193.5 kB / 0.7483 GB, free: 95.93 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.62/4.843, allocations: 3.5 kB / 0.7483 GB, free: 95.93 MB / 474.7 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)