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.006223/0.006223, allocations: 96.48 kB / 15.73 MB, free: 6.484 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.001678/0.001678, allocations: 192.1 kB / 16.67 MB, free: 6.391 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2218/0.2218, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 63.91 kB / 424.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2842, allocations: 53.61 MB / 478.3 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007029/0.2912, allocations: 6.962 MB / 485.3 MB, free: 20.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.3094, allocations: 21.76 MB / 0.4952 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001438/0.3108, allocations: 20 kB / 0.4952 GB, free: 3.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.3122, allocations: 454.6 kB / 0.4956 GB, free: 2.703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004632/0.3169, allocations: 1.649 MB / 0.4972 GB, free: 1.434 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007345/0.3243, allocations: 2.79 MB / 0.4999 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003131/0.3274, allocations: 1.827 MB / 0.5017 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001414/0.3288, allocations: 0.9234 MB / 0.5026 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001317/0.3302, allocations: 0.8556 MB / 0.5035 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.3315, allocations: 0.9386 MB / 0.5044 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002336/0.3317, allocations: 152 kB / 0.5045 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008724/0.3405, allocations: 2.317 MB / 0.5068 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005047/0.341, allocations: 366.8 kB / 0.5071 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.3423, allocations: 0.7894 MB / 0.5079 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.354, allocations: 4.152 MB / 0.512 GB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.354, allocations: 0 / 0.512 GB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.354, allocations: 0 / 0.512 GB, free: 4.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.613e-05/0.3541, allocations: 0 / 0.512 GB, free: 4.543 MB / 382.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.003861/0.3579, allocations: 2.128 MB / 0.514 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.358, allocations: 12.03 kB / 0.5141 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.3582, allocations: 182 kB / 0.5142 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.3599, allocations: 383.4 kB / 0.5146 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/0.3611, allocations: 0.7645 MB / 0.5153 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.571e-05/0.3612, allocations: 102.7 kB / 0.5154 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002069/0.3614, allocations: 124.4 kB / 0.5156 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.3641, allocations: 1.76 MB / 0.5173 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.3642, allocations: 0 / 0.5173 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.3643, allocations: 55.94 kB / 0.5173 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.3643, allocations: 28 kB / 0.5174 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003666/0.368, allocations: 2.489 MB / 0.5198 GB, free: 12.38 MB / 398.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.008456/0.3765, allocations: 5.097 MB / 0.5248 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/0.3801, allocations: 2.231 MB / 0.5269 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008438/0.3809, allocations: 0.5538 MB / 0.5275 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007486/0.3884, allocations: 5.321 MB / 0.5327 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.3885, allocations: 43.22 kB / 0.5327 GB, free: 14.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=72): time 2.264e-06/0.3885, allocations: 0 / 0.5327 GB, free: 14.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.01459/0.4031, allocations: 3.386 MB / 0.536 GB, free: 10.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.4032, allocations: 60.41 kB / 0.5361 GB, free: 10.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.4049, allocations: 1.304 MB / 0.5374 GB, free: 9.352 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.901e-05/0.405, allocations: 37.7 kB / 0.5374 GB, free: 9.309 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000543/0.4055, allocations: 0.71 MB / 0.5381 GB, free: 8.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.4058, allocations: 325.2 kB / 0.5384 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004159/0.4062, allocations: 291.4 kB / 0.5387 GB, free: 7.977 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.4064, allocations: 361.9 kB / 0.539 GB, free: 7.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000826/0.4073, allocations: 0.5076 MB / 0.5395 GB, free: 7.109 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.4085, allocations: 1.008 MB / 0.5405 GB, free: 5.883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.4105, allocations: 1.433 MB / 0.5419 GB, free: 4.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.4106, allocations: 4 kB / 0.5419 GB, free: 4.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004715/0.4153, allocations: 1.916 MB / 0.5438 GB, free: 2.301 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.4153, allocations: 14.03 kB / 0.5438 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/0.4154, allocations: 16 kB / 0.5438 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/0.4173, allocations: 249.5 kB / 0.544 GB, free: 2.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.4184, allocations: 355.5 kB / 0.5444 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005662/0.4241, allocations: 3.858 MB / 0.5481 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009397/0.4251, allocations: 51.98 kB / 0.5482 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.4252, allocations: 83.92 kB / 0.5483 GB, free: 13.41 MB / 430.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.0004806/0.4257, allocations: 289.4 kB / 0.5486 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002123/0.4259, allocations: 115.2 kB / 0.5487 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/0.4298, allocations: 1.256 MB / 0.5499 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.4298, allocations: 8 kB / 0.5499 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.4298, allocations: 0 / 0.5499 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.4298, allocations: 3.984 kB / 0.5499 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.4314, allocations: 1.113 MB / 0.551 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4314, allocations: 4 kB / 0.551 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006797/0.4321, allocations: 175.8 kB / 0.5512 GB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/0.434, allocations: 237.5 kB / 0.5514 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.625e-05/0.4341, allocations: 27.98 kB / 0.5514 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005132/0.4392, allocations: 3.772 MB / 0.5551 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.4392, allocations: 3.938 kB / 0.5551 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004197/0.4434, allocations: 1.604 MB / 0.5567 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004255/0.4439, allocations: 172.5 kB / 0.5568 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.444, allocations: 23.98 kB / 0.5569 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.4445, allocations: 20 kB / 0.5569 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.4448, allocations: 76.78 kB / 0.5569 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.169e-05/0.4449, allocations: 39.98 kB / 0.557 GB, free: 4.066 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001264/0.4461, allocations: 0.9101 MB / 0.5579 GB, free: 3.145 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4461, allocations: 4 kB / 0.5579 GB, free: 3.141 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003378/0.4495, allocations: 0.8491 MB / 0.5587 GB, free: 2.289 MB / 430.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.007298/0.4568, allocations: 3.077 MB / 0.5617 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002736/0.4596, allocations: 1.407 MB / 0.5631 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.4596, allocations: 7.938 kB / 0.5631 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.4608, allocations: 0.6795 MB / 0.5638 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.4622, allocations: 231.1 kB / 0.564 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/0.4809, allocations: 10.62 MB / 0.5743 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007986/0.4817, allocations: 1.077 MB / 0.5754 GB, free: 492 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008955/0.4826, allocations: 259.9 kB / 0.5756 GB, free: 232 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007909/0.4834, allocations: 0.5417 MB / 0.5762 GB, free: 15.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4835, allocations: 0 / 0.5762 GB, free: 15.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2949/0.7783, allocations: 38.27 MB / 0.6135 GB, free: 120.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.69, allocations: 6.828 kB / 0.6135 GB, free: 120.5 MB / 478.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)