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.00119/0.00119, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001284/0.001284, allocations: 195.8 kB / 16.25 MB, free: 6.621 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.212/1.212, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1736/0.1736, allocations: 15.32 MB / 305.4 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.001091, allocations: 59.91 kB / 369.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08511/0.08621, allocations: 53.62 MB / 423.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.007857/0.09411, allocations: 8.534 MB / 432.1 MB, free: 5.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1688/0.263, allocations: 23.03 MB / 455.1 MB, free: 37.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.264, allocations: 33.97 kB / 455.1 MB, free: 37.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.2651, allocations: 435.4 kB / 455.6 MB, free: 37.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00402/0.2691, allocations: 1.776 MB / 457.3 MB, free: 36.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006276/0.2754, allocations: 2.608 MB / 460 MB, free: 35.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00212/0.2776, allocations: 2.125 MB / 462.1 MB, free: 34.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.2786, allocations: 1.226 MB / 463.3 MB, free: 34.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009109/0.2795, allocations: 1.129 MB / 464.4 MB, free: 33.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.2806, allocations: 1.225 MB / 465.7 MB, free: 33.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000224/0.2808, allocations: 190.1 kB / 465.8 MB, free: 33.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006364/0.2872, allocations: 2.575 MB / 468.4 MB, free: 32.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003376/0.2875, allocations: 485.9 kB / 468.9 MB, free: 32.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007388/0.2883, allocations: 0.9529 MB / 469.8 MB, free: 31.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007173/0.2955, allocations: 4.483 MB / 474.3 MB, free: 30.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2955, allocations: 1.219 kB / 474.3 MB, free: 30.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2955, allocations: 0 / 474.3 MB, free: 30.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.124e-05/0.2955, allocations: 4 kB / 474.3 MB, free: 30.06 MB / 366.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.004172/0.2997, allocations: 2.405 MB / 476.7 MB, free: 28.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2998, allocations: 10.19 kB / 476.7 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002122/0.3, allocations: 212.6 kB / 477 MB, free: 28.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/0.3016, allocations: 394.2 kB / 477.3 MB, free: 28.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.3028, allocations: 0.8584 MB / 478.2 MB, free: 27.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.3029, allocations: 167.9 kB / 478.4 MB, free: 27.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.3031, allocations: 153.2 kB / 478.5 MB, free: 27.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003078/0.3062, allocations: 2.032 MB / 480.5 MB, free: 26.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.3063, allocations: 0 / 480.5 MB, free: 26.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/0.3064, allocations: 60.94 kB / 480.6 MB, free: 26.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.2e-05/0.3065, allocations: 35.25 kB / 480.6 MB, free: 26.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003655/0.3101, allocations: 2.699 MB / 483.3 MB, free: 26.02 MB / 366.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.0103/0.3204, allocations: 6.504 MB / 489.8 MB, free: 22.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/0.3253, allocations: 3.308 MB / 493.1 MB, free: 21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/0.3264, allocations: 0.8849 MB / 494 MB, free: 20.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008324/0.3348, allocations: 7.223 MB / 0.4895 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.3348, allocations: 45.22 kB / 0.4896 GB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007616/0.3356, allocations: 172.5 kB / 0.4897 GB, free: 14.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 3.396e-06/0.3356, allocations: 0 / 0.4897 GB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.0191/0.3547, allocations: 5.408 MB / 0.495 GB, free: 11.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.3548, allocations: 68.72 kB / 0.4951 GB, free: 11.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009421/0.3557, allocations: 1.026 MB / 0.4961 GB, free: 10.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.3559, allocations: 53.64 kB / 0.4961 GB, free: 10.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000249/0.3561, allocations: 0.6739 MB / 0.4968 GB, free: 9.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002411/0.3564, allocations: 492.9 kB / 0.4972 GB, free: 9.188 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003893/0.3567, allocations: 343.2 kB / 0.4976 GB, free: 8.848 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.339e-05/0.3568, allocations: 301.1 kB / 0.4979 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008469/0.3577, allocations: 0.6481 MB / 0.4985 GB, free: 7.902 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.3587, allocations: 1.107 MB / 0.4996 GB, free: 6.605 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001883/0.3606, allocations: 1.804 MB / 0.5013 GB, free: 4.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3606, allocations: 4 kB / 0.5013 GB, free: 4.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005871/0.3664, allocations: 2.411 MB / 0.5037 GB, free: 2.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3665, allocations: 15.94 kB / 0.5037 GB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.3665, allocations: 12 kB / 0.5037 GB, free: 2.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002723/0.3692, allocations: 490.7 kB / 0.5042 GB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.3705, allocations: 419.3 kB / 0.5046 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.3755, allocations: 3.868 MB / 0.5084 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.377, allocations: 87.95 kB / 0.5084 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/0.3772, allocations: 91.91 kB / 0.5085 GB, free: 12.94 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.0006042/0.3778, allocations: 341.2 kB / 0.5089 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002568/0.3781, allocations: 122.4 kB / 0.509 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006506/0.3846, allocations: 2.133 MB / 0.5111 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.3846, allocations: 19.94 kB / 0.5111 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.3847, allocations: 3.984 kB / 0.5111 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.3847, allocations: 3.984 kB / 0.5111 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00795/0.3926, allocations: 3.543 MB / 0.5145 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3926, allocations: 0 / 0.5145 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.3937, allocations: 275.7 kB / 0.5148 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002731/0.3965, allocations: 471.5 kB / 0.5153 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001204/0.3966, allocations: 47.97 kB / 0.5153 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004743/0.4013, allocations: 3.779 MB / 0.519 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.4014, allocations: 0 / 0.519 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00674/0.4081, allocations: 2.751 MB / 0.5217 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.4085, allocations: 183.7 kB / 0.5219 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.4087, allocations: 27.94 kB / 0.5219 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008868/0.4096, allocations: 59.88 kB / 0.5219 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.4099, allocations: 125.1 kB / 0.5221 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.41, allocations: 55.97 kB / 0.5221 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007523/0.4108, allocations: 0.7069 MB / 0.5228 GB, free: 13.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4108, allocations: 0 / 0.5228 GB, free: 13.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002536/0.4133, allocations: 0.9368 MB / 0.5237 GB, free: 12.96 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.008994/0.4223, allocations: 4.288 MB / 0.5279 GB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.427, allocations: 2.153 MB / 0.53 GB, free: 6.434 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.427, allocations: 8.125 kB / 0.53 GB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.4287, allocations: 1.131 MB / 0.5311 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.4301, allocations: 259.2 kB / 0.5314 GB, free: 5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/0.4533, allocations: 13.49 MB / 0.5445 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.454, allocations: 1.191 MB / 0.5457 GB, free: 5.559 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.4554, allocations: 329 kB / 0.546 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008291/0.4562, allocations: 0.6607 MB / 0.5467 GB, free: 4.582 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4562, allocations: 3.938 kB / 0.5467 GB, free: 4.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07539/0.5316, allocations: 44.92 MB / 0.5905 GB, free: 7.93 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/0.5319, allocations: 229.5 kB / 0.5908 GB, free: 7.668 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.061/3.593, allocations: 0 / 0.5908 GB, free: 7.668 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)