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.006669/0.006669, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001935/0.001935, allocations: 202 kB / 16.68 MB, free: 5.965 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2176/0.2176, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 63.89 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2727, allocations: 53.61 MB / 478.3 MB, free: 25.76 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007456/0.2802, allocations: 6.955 MB / 485.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02304/0.3033, allocations: 21.77 MB / 0.4952 GB, free: 3.078 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002396/0.3058, allocations: 13.25 kB / 0.4952 GB, free: 3.074 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.3072, allocations: 460 kB / 0.4956 GB, free: 2.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006336/0.3136, allocations: 1.651 MB / 0.4972 GB, free: 1.453 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008392/0.322, allocations: 2.783 MB / 0.4999 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003093/0.3251, allocations: 1.831 MB / 0.5017 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001661/0.3268, allocations: 0.9191 MB / 0.5026 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.3282, allocations: 0.8549 MB / 0.5035 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001421/0.3296, allocations: 0.9471 MB / 0.5044 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002735/0.3299, allocations: 152 kB / 0.5045 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007755/0.3376, allocations: 2.317 MB / 0.5068 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004895/0.3382, allocations: 362.9 kB / 0.5071 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.3395, allocations: 0.7933 MB / 0.5079 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.3514, allocations: 4.155 MB / 0.512 GB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.3515, allocations: 0 / 0.512 GB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3515, allocations: 0 / 0.512 GB, free: 4.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.3515, allocations: 0 / 0.512 GB, free: 4.512 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.004335/0.3559, allocations: 2.128 MB / 0.5141 GB, free: 2.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.3559, allocations: 8.031 kB / 0.5141 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002502/0.3562, allocations: 186 kB / 0.5142 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/0.3579, allocations: 383.4 kB / 0.5146 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.3592, allocations: 0.7606 MB / 0.5153 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.658e-05/0.3593, allocations: 94.84 kB / 0.5154 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002279/0.3596, allocations: 128.4 kB / 0.5156 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.3626, allocations: 1.756 MB / 0.5173 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.3627, allocations: 4 kB / 0.5173 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.3628, allocations: 55.98 kB / 0.5173 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.106e-05/0.3628, allocations: 28 kB / 0.5174 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004193/0.367, allocations: 2.485 MB / 0.5198 GB, free: 12.35 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.00933/0.3764, allocations: 5.101 MB / 0.5248 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/0.3803, allocations: 2.242 MB / 0.527 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009256/0.3812, allocations: 0.5499 MB / 0.5275 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008359/0.3896, allocations: 5.317 MB / 0.5327 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.3896, allocations: 47.22 kB / 0.5327 GB, free: 14.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=72): time 2.445e-06/0.3897, allocations: 3.938 kB / 0.5327 GB, free: 14.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.01476/0.4044, allocations: 3.384 MB / 0.536 GB, free: 10.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.4045, allocations: 60.41 kB / 0.5361 GB, free: 10.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.4068, allocations: 1.292 MB / 0.5374 GB, free: 9.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003026/0.4071, allocations: 45.64 kB / 0.5374 GB, free: 9.289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000748/0.4079, allocations: 0.7139 MB / 0.5381 GB, free: 8.566 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004279/0.4083, allocations: 333.2 kB / 0.5384 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005818/0.4089, allocations: 287.4 kB / 0.5387 GB, free: 7.949 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002882/0.4092, allocations: 357.9 kB / 0.539 GB, free: 7.594 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.4102, allocations: 0.5154 MB / 0.5395 GB, free: 7.078 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.4117, allocations: 1.004 MB / 0.5405 GB, free: 5.855 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.4139, allocations: 1.426 MB / 0.5419 GB, free: 4.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.4139, allocations: 4 kB / 0.5419 GB, free: 4.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004817/0.4187, allocations: 1.92 MB / 0.5438 GB, free: 2.277 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.4188, allocations: 12 kB / 0.5438 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/0.4188, allocations: 19.98 kB / 0.5438 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.4207, allocations: 241.6 kB / 0.544 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.4219, allocations: 347.5 kB / 0.5444 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006368/0.4283, allocations: 3.875 MB / 0.5482 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.4297, allocations: 48 kB / 0.5482 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.4299, allocations: 83.97 kB / 0.5483 GB, free: 13.39 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.0005897/0.4305, allocations: 289.4 kB / 0.5486 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.4308, allocations: 111.2 kB / 0.5487 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/0.4347, allocations: 1.25 MB / 0.5499 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.4348, allocations: 8 kB / 0.5499 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4348, allocations: 3.938 kB / 0.5499 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.4348, allocations: 7.984 kB / 0.5499 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00193/0.4367, allocations: 1.109 MB / 0.551 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.4367, allocations: 4 kB / 0.551 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006704/0.4374, allocations: 171.8 kB / 0.5512 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/0.4392, allocations: 241.5 kB / 0.5514 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.022e-05/0.4393, allocations: 27.98 kB / 0.5514 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005478/0.4448, allocations: 3.772 MB / 0.5551 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4448, allocations: 0 / 0.5551 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0046/0.4495, allocations: 1.596 MB / 0.5567 GB, free: 4.398 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005467/0.45, allocations: 180.4 kB / 0.5568 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.4502, allocations: 23.94 kB / 0.5569 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.4507, allocations: 23.94 kB / 0.5569 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.451, allocations: 76.83 kB / 0.557 GB, free: 4.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-05/0.451, allocations: 39.98 kB / 0.557 GB, free: 4.043 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001256/0.4523, allocations: 0.9062 MB / 0.5579 GB, free: 3.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4523, allocations: 0 / 0.5579 GB, free: 3.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002913/0.4552, allocations: 0.853 MB / 0.5587 GB, free: 2.27 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.007063/0.4623, allocations: 3.072 MB / 0.5617 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003032/0.4654, allocations: 1.404 MB / 0.5631 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.4654, allocations: 8.125 kB / 0.5631 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.4666, allocations: 0.6786 MB / 0.5637 GB, free: 13.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.4681, allocations: 244.6 kB / 0.564 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02042/0.4885, allocations: 10.61 MB / 0.5743 GB, free: 1.574 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008637/0.4894, allocations: 1.081 MB / 0.5754 GB, free: 472 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009861/0.4904, allocations: 260 kB / 0.5756 GB, free: 212 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008118/0.4912, allocations: 0.534 MB / 0.5762 GB, free: 15.67 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4913, allocations: 4 kB / 0.5762 GB, free: 15.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3183/0.8096, allocations: 38.27 MB / 0.6135 GB, free: 120.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.62/16.43, allocations: 13.34 kB / 0.6136 GB, free: 120.6 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.GasSolubility_blood_res.csv --start-time 0 --stop-time 1e-05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-09 Chemical_Chemical_Examples_GasSolubility_blood.fmu > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)