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.07734/0.07734, allocations: 15.25 MB / 22.73 MB, free: 0.9414 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009651/0.0009651, allocations: 185 kB / 27.52 MB, free: 6.109 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.213/1.213, allocations: 221.5 MB / 253.7 MB, free: 10.43 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.0008/0.0008, allocations: 108.1 kB / 308.8 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.11e-05/1.109e-05, allocations: 2.75 kB / 369.7 MB, free: 53.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0712/0.07122, allocations: 54.64 MB / 424.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2867/0.358, allocations: 102.6 MB / 0.5146 GB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001609/0.3582, allocations: 74.77 kB / 0.5147 GB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1472/0.5054, allocations: 64.14 MB / 0.5773 GB, free: 15.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5054, allocations: 4 kB / 0.5773 GB, free: 15.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.893e-05/0.5055, allocations: 32 kB / 0.5773 GB, free: 15.36 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.00353/0.509, allocations: 1.856 MB / 0.5792 GB, free: 13.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.5091, allocations: 12.02 kB / 0.5792 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/0.5105, allocations: 456.9 kB / 0.5796 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001596/0.5121, allocations: 0.9765 MB / 0.5806 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.5122, allocations: 122.2 kB / 0.5807 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/0.5124, allocations: 91.84 kB / 0.5808 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004383/0.5168, allocations: 3.988 MB / 0.5847 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/0.5196, allocations: 2.102 MB / 0.5867 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.5196, allocations: 0 / 0.5867 GB, free: 5.633 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.5197, allocations: 3.938 kB / 0.5867 GB, free: 5.629 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.5197, allocations: 36 kB / 0.5867 GB, free: 5.594 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01095/0.5307, allocations: 8.038 MB / 0.5946 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004346/0.5351, allocations: 3.734 MB / 0.5982 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001392/0.5365, allocations: 1.339 MB / 0.5995 GB, free: 8.266 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005155/0.537, allocations: 416.5 kB / 0.5999 GB, free: 7.871 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.537, allocations: 60.5 kB / 0.6 GB, free: 7.801 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009888/0.538, allocations: 178.5 kB / 0.6002 GB, free: 7.629 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 3.777e-06/0.538, allocations: 0 / 0.6002 GB, free: 7.629 MB / 410.7 MB Notification: Performance of matching and sorting (n=225): time 0.03158/0.5696, allocations: 11.14 MB / 0.6111 GB, free: 12.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.5697, allocations: 73.41 kB / 0.6111 GB, free: 12.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009817/0.5707, allocations: 0.8708 MB / 0.612 GB, free: 11.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.5708, allocations: 25.7 kB / 0.612 GB, free: 11.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.5712, allocations: 0.5323 MB / 0.6125 GB, free: 10.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005703/0.5717, allocations: 0.7234 MB / 0.6132 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.5719, allocations: 4 kB / 0.6132 GB, free: 10.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.5721, allocations: 434.9 kB / 0.6136 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.5738, allocations: 1.574 MB / 0.6152 GB, free: 8.227 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/0.5757, allocations: 1.796 MB / 0.6169 GB, free: 6.359 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004021/0.5797, allocations: 2.08 MB / 0.619 GB, free: 4.285 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5797, allocations: 3.938 kB / 0.619 GB, free: 4.281 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01004/0.5898, allocations: 4.657 MB / 0.6235 GB, free: 15.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.5898, allocations: 8 kB / 0.6235 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.5899, allocations: 4 kB / 0.6235 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003265/0.5931, allocations: 0.6668 MB / 0.6242 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.5949, allocations: 467.2 kB / 0.6246 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005279/0.6002, allocations: 4.312 MB / 0.6288 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002323/0.6026, allocations: 203.7 kB / 0.629 GB, free: 9.684 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002068/0.6028, allocations: 111.9 kB / 0.6291 GB, free: 9.574 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (241): * Single equations (assignments): 235 * Array equations: 2 * 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.0003677/0.6032, allocations: 147.4 kB / 0.6293 GB, free: 9.43 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01212/0.6153, allocations: 4.755 MB / 0.6339 GB, free: 4.648 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/0.6155, allocations: 126.4 kB / 0.634 GB, free: 4.523 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/0.6283, allocations: 5.13 MB / 0.6391 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01166/0.64, allocations: 4.661 MB / 0.6436 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.64, allocations: 3.984 kB / 0.6436 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/0.64, allocations: 11.95 kB / 0.6436 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0185/0.6585, allocations: 10.51 MB / 0.6539 GB, free: 15.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.6586, allocations: 12 kB / 0.6539 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.6601, allocations: 407.3 kB / 0.6543 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006225/0.6663, allocations: 1.365 MB / 0.6556 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001576/0.6665, allocations: 51.92 kB / 0.6557 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/0.677, allocations: 7.354 MB / 0.6628 GB, free: 6.543 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005373/0.6824, allocations: 2.46 MB / 0.6653 GB, free: 3.949 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2092/0.8916, allocations: 7.658 MB / 0.6727 GB, free: 117.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004817/0.8921, allocations: 245.6 kB / 0.673 GB, free: 117.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000438/0.8926, allocations: 19.41 kB / 0.673 GB, free: 117.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/0.8944, allocations: 113.9 kB / 0.6731 GB, free: 117.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004951/0.895, allocations: 222.4 kB / 0.6733 GB, free: 117.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002506/0.8952, allocations: 93.45 kB / 0.6734 GB, free: 117.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008817/0.8961, allocations: 0.6833 MB / 0.6741 GB, free: 117.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8961, allocations: 1.406 kB / 0.6741 GB, free: 117.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004095/0.9002, allocations: 1.359 MB / 0.6754 GB, free: 117.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 217 * 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,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01663/0.9169, allocations: 11.91 MB / 0.687 GB, free: 113.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004384/0.9213, allocations: 3.9 MB / 0.6908 GB, free: 113 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.034e-06/0.9213, allocations: 3.938 kB / 0.6908 GB, free: 113 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003321/0.9246, allocations: 2.476 MB / 0.6932 GB, free: 112.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.9261, allocations: 245.7 kB / 0.6935 GB, free: 112.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005374/0.9314, allocations: 3.925 MB / 0.6973 GB, free: 111.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005702/0.932, allocations: 1.346 MB / 0.6986 GB, free: 110.8 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001135/0.9332, allocations: 330 kB / 0.6989 GB, free: 110.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008701/0.9341, allocations: 0.6983 MB / 0.6996 GB, free: 110.7 MB / 474.7 MB Notification: Performance of SimCode: time 6.51e-07/0.9341, allocations: 0 / 0.6996 GB, free: 110.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06976/1.004, allocations: 55.33 MB / 0.7537 GB, free: 89.36 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001309/1.004, allocations: 126.4 kB / 0.7538 GB, free: 89.17 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.322/4.326, allocations: 5.312 kB / 0.7538 GB, free: 89.16 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)