Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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.GasSolubility,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility",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.07605/0.07606, allocations: 15.26 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.0008621/0.0008622, allocations: 189 kB / 27.52 MB, free: 6.102 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.291/1.291, allocations: 221.5 MB / 253.7 MB, free: 10.41 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.0008313/0.000831, allocations: 100.5 kB / 308.8 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.057e-05/2.067e-05, allocations: 2.688 kB / 369.7 MB, free: 53.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/0.09542, allocations: 54.64 MB / 424.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3647/0.4602, allocations: 102.5 MB / 0.5144 GB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.4604, allocations: 64.3 kB / 0.5145 GB, free: 12.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2048/0.6652, allocations: 90.22 MB / 0.6026 GB, free: 5.543 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.6653, allocations: 3.938 kB / 0.6026 GB, free: 5.539 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.129e-05/0.6654, allocations: 51.98 kB / 0.6027 GB, free: 5.488 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.005174/0.6706, allocations: 2.484 MB / 0.6051 GB, free: 2.945 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.6706, allocations: 12.02 kB / 0.6051 GB, free: 2.934 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002356/0.673, allocations: 0.6464 MB / 0.6057 GB, free: 2.285 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.6753, allocations: 1.259 MB / 0.607 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.6753, allocations: 68 kB / 0.607 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003023/0.6757, allocations: 131.9 kB / 0.6071 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006722/0.6824, allocations: 5.603 MB / 0.6126 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004261/0.6867, allocations: 2.829 MB / 0.6154 GB, free: 8.262 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.6868, allocations: 3.938 kB / 0.6154 GB, free: 8.258 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.6869, allocations: 0 / 0.6154 GB, free: 8.258 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.402e-05/0.6869, allocations: 52 kB / 0.6154 GB, free: 8.207 MB / 426.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.02642/0.7134, allocations: 10.49 MB / 0.6257 GB, free: 13.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005875/0.7193, allocations: 4.826 MB / 0.6304 GB, free: 8.465 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002146/0.7215, allocations: 1.651 MB / 0.632 GB, free: 6.816 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008831/0.7224, allocations: 0.5681 MB / 0.6325 GB, free: 6.246 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.7224, allocations: 56.56 kB / 0.6326 GB, free: 6.184 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001076/0.7235, allocations: 150.3 kB / 0.6327 GB, free: 6.035 MB / 442.7 MB Notification: Performance of pre-optimization done (n=233): time 4.649e-06/0.7235, allocations: 0 / 0.6327 GB, free: 6.035 MB / 442.7 MB Notification: Performance of matching and sorting (n=316): time 0.05113/0.7746, allocations: 14.96 MB / 0.6474 GB, free: 7.051 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.7747, allocations: 81.78 kB / 0.6474 GB, free: 6.957 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.7764, allocations: 1.353 MB / 0.6488 GB, free: 5.586 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004769/0.7769, allocations: 25.7 kB / 0.6488 GB, free: 5.555 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005022/0.7774, allocations: 0.7704 MB / 0.6495 GB, free: 4.773 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001018/0.7784, allocations: 1.016 MB / 0.6505 GB, free: 3.742 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.7786, allocations: 0 / 0.6505 GB, free: 3.742 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.7788, allocations: 420.4 kB / 0.6509 GB, free: 3.324 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002579/0.7814, allocations: 2.103 MB / 0.653 GB, free: 1.219 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/0.7843, allocations: 2.476 MB / 0.6554 GB, free: 14.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00611/0.7905, allocations: 2.861 MB / 0.6582 GB, free: 11.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.7905, allocations: 0 / 0.6582 GB, free: 11.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=393) (initialization): time 0.01592/0.8064, allocations: 6.243 MB / 0.6643 GB, free: 5.453 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.8065, allocations: 16.58 kB / 0.6643 GB, free: 5.438 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.8065, allocations: 8 kB / 0.6643 GB, free: 5.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004705/0.8112, allocations: 0.7544 MB / 0.6651 GB, free: 4.656 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/0.8141, allocations: 0.6514 MB / 0.6657 GB, free: 4.004 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2196/1.034, allocations: 8.289 MB / 0.6738 GB, free: 94.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003271/1.037, allocations: 253.8 kB / 0.674 GB, free: 94.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000546/1.038, allocations: 155.4 kB / 0.6742 GB, free: 94.04 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_erythrocyte.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_unbound_erythrocyte.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_plasma.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_unbound_plasma.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: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (353): * Single equations (assignments): 343 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 8,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006546/1.038, allocations: 164.6 kB / 0.6743 GB, free: 93.93 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01682/1.055, allocations: 6.08 MB / 0.6803 GB, free: 93.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003906/1.055, allocations: 182.3 kB / 0.6804 GB, free: 93.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01634/1.072, allocations: 6.572 MB / 0.6869 GB, free: 93.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01453/1.086, allocations: 5.959 MB / 0.6927 GB, free: 93.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.086, allocations: 4.75 kB / 0.6927 GB, free: 93.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.785e-05/1.086, allocations: 19.58 kB / 0.6927 GB, free: 93.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02265/1.109, allocations: 16 MB / 0.7083 GB, free: 91.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.749e-05/1.109, allocations: 13.53 kB / 0.7083 GB, free: 91.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/1.111, allocations: 0.5484 MB / 0.7089 GB, free: 91.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008271/1.119, allocations: 1.621 MB / 0.7105 GB, free: 91.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002023/1.119, allocations: 67.89 kB / 0.7105 GB, free: 91.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/1.134, allocations: 12.05 MB / 0.7223 GB, free: 85.83 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009187/1.143, allocations: 4.687 MB / 0.7269 GB, free: 83.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01587/1.159, allocations: 9.92 MB / 0.7366 GB, free: 79.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/1.159, allocations: 318.7 kB / 0.7369 GB, free: 79.21 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002418/1.159, allocations: 36.94 kB / 0.7369 GB, free: 79.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/1.161, allocations: 154.2 kB / 0.737 GB, free: 79.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003557/1.162, allocations: 302.2 kB / 0.7373 GB, free: 79.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/1.162, allocations: 126.5 kB / 0.7375 GB, free: 79.13 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008485/1.163, allocations: 1.04 MB / 0.7385 GB, free: 78.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.163, allocations: 2.344 kB / 0.7385 GB, free: 78.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004156/1.167, allocations: 1.855 MB / 0.7403 GB, free: 78.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 72 * Number of states: 9 ($STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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 (308): * Single equations (assignments): 302 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 8,6 9,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01847/1.185, allocations: 16.86 MB / 0.7567 GB, free: 67.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005094/1.19, allocations: 5.073 MB / 0.7617 GB, free: 65.76 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.19, allocations: 0 / 0.7617 GB, free: 65.76 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003439/1.194, allocations: 3.049 MB / 0.7647 GB, free: 63.17 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/1.195, allocations: 345.5 kB / 0.765 GB, free: 62.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006522/1.202, allocations: 5.395 MB / 0.7703 GB, free: 57.89 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007866/1.203, allocations: 1.608 MB / 0.7718 GB, free: 56.59 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001504/1.204, allocations: 431.8 kB / 0.7723 GB, free: 56.31 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/1.205, allocations: 0.9921 MB / 0.7732 GB, free: 55.43 MB / 474.7 MB Notification: Performance of SimCode: time 3.7e-07/1.205, allocations: 1.344 kB / 0.7732 GB, free: 55.43 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1119/1.317, allocations: 75.95 MB / 0.8474 GB, free: 6.773 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/1.318, allocations: 117.2 kB / 0.8475 GB, free: 6.574 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.309/5.627, allocations: 0 / 0.8475 GB, free: 6.574 MB / 490.7 MB (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility.fmu > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)