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/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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007227/0.0007227, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008236/0.0008236, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 223.2 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.185/0.185, allocations: 15.26 MB / 306.3 MB, free: 15.79 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003055, allocations: 16 kB / 371.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.257, allocations: 54.61 MB / 426.2 MB, free: 39.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.007786/0.2648, allocations: 10.58 MB / 436.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02404/0.2888, allocations: 30.01 MB / 466.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.2909, allocations: 47.72 kB / 466.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.2925, allocations: 0.6214 MB / 467.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005994/0.2985, allocations: 2.303 MB / 469.7 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008759/0.3073, allocations: 3.484 MB / 473.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00361/0.3109, allocations: 2.735 MB / 476 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002256/0.3132, allocations: 1.282 MB / 477.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002374/0.3156, allocations: 1.166 MB / 478.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0028/0.3184, allocations: 1.445 MB / 479.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007947/0.3192, allocations: 142.4 kB / 480 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/0.3295, allocations: 3.294 MB / 483.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009393/0.3305, allocations: 482.1 kB / 483.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.3317, allocations: 445.1 kB / 484.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00846/0.3402, allocations: 4.901 MB / 489.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3402, allocations: 0 / 489.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3402, allocations: 1.438 kB / 489.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001325/0.3404, allocations: 0 / 489.1 MB, free: 4.016 MB / 350.1 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.008311/0.3487, allocations: 2.696 MB / 491.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3488, allocations: 13.44 kB / 491.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00119/0.35, allocations: 294.1 kB / 492.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003883/0.3538, allocations: 0.5637 MB / 492.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003636/0.3575, allocations: 1.026 MB / 493.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002079/0.3577, allocations: 166.4 kB / 493.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008141/0.3586, allocations: 218.5 kB / 494.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005959/0.3645, allocations: 2.765 MB / 496.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.274e-05/0.3646, allocations: 3.984 kB / 496.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003659/0.365, allocations: 91.94 kB / 496.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.106e-05/0.365, allocations: 48 kB / 497 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00562/0.3706, allocations: 3.772 MB / 0.489 GB, free: 11.19 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.01317/0.3838, allocations: 8.254 MB / 0.4971 GB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005566/0.3894, allocations: 3.949 MB / 0.5009 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.391, allocations: 1.009 MB / 0.5019 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/0.4027, allocations: 9.036 MB / 0.5107 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.4028, allocations: 47.81 kB / 0.5108 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007908/0.4036, allocations: 162.1 kB / 0.5109 GB, free: 3.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=138): time 5.17e-06/0.4036, allocations: 4 kB / 0.5109 GB, free: 3.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=170): time 0.02734/0.431, allocations: 6.462 MB / 0.5172 GB, free: 12.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.431, allocations: 69.41 kB / 0.5173 GB, free: 12.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002021/0.4331, allocations: 1.648 MB / 0.5189 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.4332, allocations: 57.7 kB / 0.519 GB, free: 10.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006733/0.4339, allocations: 1.042 MB / 0.52 GB, free: 9.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004731/0.4343, allocations: 0.5893 MB / 0.5206 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.4345, allocations: 48 kB / 0.5206 GB, free: 9.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.4347, allocations: 403 kB / 0.521 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.436, allocations: 0.7857 MB / 0.5218 GB, free: 7.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.4377, allocations: 1.589 MB / 0.5233 GB, free: 5.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.4394, allocations: 1.005 MB / 0.5243 GB, free: 4.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.721e-05/0.4394, allocations: 8 kB / 0.5243 GB, free: 4.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.007932/0.4474, allocations: 3.131 MB / 0.5274 GB, free: 1.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.4474, allocations: 16 kB / 0.5274 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-05/0.4475, allocations: 24 kB / 0.5274 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003696/0.4512, allocations: 0.5107 MB / 0.5279 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.453, allocations: 0.5811 MB / 0.5285 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009739/0.4627, allocations: 6.997 MB / 0.5353 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.4646, allocations: 147.8 kB / 0.5354 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002796/0.4649, allocations: 143.7 kB / 0.5356 GB, free: 8.883 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * 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 (305): * Single equations (assignments): 301 * 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: 4 * 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: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008937/0.4658, allocations: 424.9 kB / 0.536 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003755/0.4662, allocations: 173.8 kB / 0.5361 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007816/0.474, allocations: 2.423 MB / 0.5385 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.474, allocations: 16 kB / 0.5385 GB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.4741, allocations: 4 kB / 0.5385 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.4741, allocations: 7.969 kB / 0.5385 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.4772, allocations: 1.874 MB / 0.5404 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/0.4773, allocations: 0 / 0.5404 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.4786, allocations: 347.8 kB / 0.5407 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003737/0.4823, allocations: 486.8 kB / 0.5412 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.4825, allocations: 55.97 kB / 0.5412 GB, free: 2.969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009087/0.4916, allocations: 6.823 MB / 0.5479 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4916, allocations: 0 / 0.5479 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008115/0.4997, allocations: 3.011 MB / 0.5508 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/0.5004, allocations: 254.9 kB / 0.5511 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004519/0.5009, allocations: 36 kB / 0.5511 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.5021, allocations: 67.83 kB / 0.5512 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003277/0.5025, allocations: 149.8 kB / 0.5513 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001715/0.5027, allocations: 75.97 kB / 0.5514 GB, free: 7.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001604/0.5043, allocations: 1.114 MB / 0.5525 GB, free: 6.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5043, allocations: 0 / 0.5525 GB, free: 6.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00517/0.5095, allocations: 1.339 MB / 0.5538 GB, free: 5.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (blood_plasma.temperature,red_cells.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,CO2_unbound_erythrocyte.logn,O2_unbound_erythrocyte_NIST.logn,water_plasma.logn,water.logn,water_plasma1.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 (183): * Single equations (assignments): 179 * 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: 4 * 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: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01243/0.5219, allocations: 4.906 MB / 0.5586 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004305/0.5263, allocations: 2.483 MB / 0.561 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.5263, allocations: 0 / 0.561 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.5283, allocations: 1.354 MB / 0.5623 GB, free: 12.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.5305, allocations: 349.6 kB / 0.5626 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02309/0.5536, allocations: 12.76 MB / 0.5751 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.5547, allocations: 1.378 MB / 0.5764 GB, free: 13.15 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002013/0.5568, allocations: 453.5 kB / 0.5769 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.5581, allocations: 0.9553 MB / 0.5778 GB, free: 11.75 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5581, allocations: 0 / 0.5778 GB, free: 11.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2695/0.8276, allocations: 58.68 MB / 0.6351 GB, free: 117.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001183/0.8277, allocations: 193.2 kB / 0.6353 GB, free: 117.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.607/4.435, allocations: 2.812 kB / 0.6353 GB, free: 117.1 MB / 462.1 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) Environment - environmentSimulation: