Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.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.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",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.0007462/0.0007462, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.004652/0.004651, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.235/1.235, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1663/0.1663, allocations: 15.27 MB / 306.7 MB, free: 15.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002795, allocations: 8 kB / 372.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2375, allocations: 54.62 MB / 426.8 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.005225/0.2427, allocations: 7.527 MB / 434.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.2584, allocations: 21.48 MB / 455.8 MB, free: 22.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.2595, allocations: 24.53 kB / 455.8 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.2605, allocations: 413 kB / 456.2 MB, free: 21.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003558/0.2641, allocations: 1.468 MB / 457.7 MB, free: 20.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006175/0.2703, allocations: 2.447 MB / 460.2 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001742/0.272, allocations: 1.739 MB / 461.9 MB, free: 18.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006763/0.2727, allocations: 0.7557 MB / 462.7 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006833/0.2734, allocations: 0.7979 MB / 463.5 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007934/0.2742, allocations: 0.8698 MB / 464.3 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.2743, allocations: 85.41 kB / 464.4 MB, free: 17.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006063/0.2804, allocations: 2.263 MB / 466.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003074/0.2807, allocations: 291.1 kB / 467 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000749/0.2815, allocations: 0.7391 MB / 467.7 MB, free: 16.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007566/0.2891, allocations: 3.816 MB / 471.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2891, allocations: 0.75 kB / 471.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2891, allocations: 1.281 kB / 471.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.2891, allocations: 0 / 471.5 MB, free: 15.15 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.003346/0.2925, allocations: 1.75 MB / 473.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2925, allocations: 14.22 kB / 473.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002079/0.2928, allocations: 183.8 kB / 473.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001477/0.2942, allocations: 380.6 kB / 473.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009513/0.2952, allocations: 0.7075 MB / 474.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.381e-05/0.2953, allocations: 97.84 kB / 474.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.2955, allocations: 130 kB / 474.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002637/0.2981, allocations: 1.759 MB / 476.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.2982, allocations: 0 / 476.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.2983, allocations: 51.92 kB / 476.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.2983, allocations: 30.12 kB / 476.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003385/0.3017, allocations: 2.485 MB / 479.1 MB, free: 11.68 MB / 350.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.00711/0.3088, allocations: 5.055 MB / 484.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003101/0.312, allocations: 2.242 MB / 486.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007052/0.3127, allocations: 0.5523 MB / 486.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005618/0.3183, allocations: 5.199 MB / 492.1 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.3183, allocations: 40.02 kB / 492.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 1.823e-06/0.3183, allocations: 0 / 492.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.01386/0.3322, allocations: 3.42 MB / 495.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.3323, allocations: 64.41 kB / 495.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00136/0.3336, allocations: 1.292 MB / 496.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.676e-05/0.3337, allocations: 37.7 kB / 497 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000382/0.3341, allocations: 0.6881 MB / 497.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.3343, allocations: 315.4 kB / 498 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.3345, allocations: 121.6 kB / 498.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3346, allocations: 365.9 kB / 498.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007252/0.3353, allocations: 0.5076 MB / 499 MB, free: 12.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009725/0.3363, allocations: 1 MB / 500 MB, free: 11.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.3379, allocations: 1.433 MB / 0.4896 GB, free: 9.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.3379, allocations: 7.938 kB / 0.4897 GB, free: 9.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004396/0.3423, allocations: 1.92 MB / 0.4915 GB, free: 7.598 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.3424, allocations: 12 kB / 0.4915 GB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.3424, allocations: 16 kB / 0.4916 GB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.3445, allocations: 265.4 kB / 0.4918 GB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.3456, allocations: 347.5 kB / 0.4921 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.3507, allocations: 3.515 MB / 0.4956 GB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.3517, allocations: 83.88 kB / 0.4957 GB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.3519, allocations: 87.91 kB / 0.4957 GB, free: 3.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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.0004302/0.3523, allocations: 285.3 kB / 0.496 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.3525, allocations: 102.7 kB / 0.4961 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003962/0.3564, allocations: 1.286 MB / 0.4974 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3564, allocations: 8 kB / 0.4974 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3565, allocations: 3.938 kB / 0.4974 GB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.3565, allocations: 3.984 kB / 0.4974 GB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.3579, allocations: 1.107 MB / 0.4985 GB, free: 136 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3579, allocations: 8.125 kB / 0.4985 GB, free: 128 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006452/0.3585, allocations: 179.7 kB / 0.4986 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/0.3607, allocations: 245.4 kB / 0.4989 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-05/0.3607, allocations: 27.98 kB / 0.4989 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004518/0.3653, allocations: 3.425 MB / 0.5022 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3653, allocations: 0 / 0.5022 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004036/0.3693, allocations: 1.603 MB / 0.5038 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.3697, allocations: 199.7 kB / 0.504 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.3698, allocations: 19.94 kB / 0.504 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005557/0.3704, allocations: 31.98 kB / 0.504 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.3705, allocations: 80.83 kB / 0.5041 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.529e-05/0.3706, allocations: 35.98 kB / 0.5042 GB, free: 9.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009479/0.3716, allocations: 0.914 MB / 0.5051 GB, free: 9.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3716, allocations: 0 / 0.5051 GB, free: 9.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002432/0.374, allocations: 0.8314 MB / 0.5059 GB, free: 8.207 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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.006569/0.3806, allocations: 3.039 MB / 0.5088 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.383, allocations: 1.417 MB / 0.5102 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.383, allocations: 4 kB / 0.5102 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009121/0.3839, allocations: 0.6785 MB / 0.5109 GB, free: 2.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.3853, allocations: 223.7 kB / 0.5111 GB, free: 2.758 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/0.4031, allocations: 11.65 MB / 0.5225 GB, free: 6.344 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.4036, allocations: 1.081 MB / 0.5235 GB, free: 5.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001045/0.4047, allocations: 260.4 kB / 0.5238 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006744/0.4054, allocations: 0.5378 MB / 0.5243 GB, free: 4.438 MB / 398.1 MB Notification: Performance of SimCode: time 2.815e-06/0.4054, allocations: 4 kB / 0.5243 GB, free: 4.434 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8737/1.279, allocations: 36.58 MB / 0.56 GB, free: 88 kB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003762/1.279, allocations: 208.1 kB / 0.5602 GB, free: 15.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.044/4.323, allocations: 0 / 0.5602 GB, free: 15.83 MB / 446.1 MB (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_blood_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility_blood.fmu > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)