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.001717/0.001717, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002292/0.002292, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.856/2.856, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4509/0.4509, allocations: 15.31 MB / 305.7 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 67.84 kB / 370.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1604, allocations: 53.61 MB / 424 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.02053/0.181, allocations: 6.957 MB / 431 MB, free: 7.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4027/0.5837, allocations: 21.76 MB / 452.8 MB, free: 39.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001825/0.5856, allocations: 17.66 kB / 452.8 MB, free: 39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001966/0.5876, allocations: 449.8 kB / 453.2 MB, free: 38.76 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008004/0.5957, allocations: 1.644 MB / 454.9 MB, free: 37.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01294/0.6087, allocations: 2.803 MB / 457.7 MB, free: 36.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003768/0.6125, allocations: 1.81 MB / 459.5 MB, free: 36.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001928/0.6145, allocations: 0.9209 MB / 460.4 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001527/0.616, allocations: 0.8484 MB / 461.2 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.6177, allocations: 0.9415 MB / 462.2 MB, free: 35.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003391/0.618, allocations: 154.4 kB / 462.3 MB, free: 35.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0117/0.6297, allocations: 2.316 MB / 464.6 MB, free: 35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007012/0.6305, allocations: 362.4 kB / 465 MB, free: 34.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001224/0.6317, allocations: 0.7948 MB / 465.8 MB, free: 34.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01346/0.6452, allocations: 4.103 MB / 469.9 MB, free: 32.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.6453, allocations: 3.094 kB / 469.9 MB, free: 32.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.6453, allocations: 4 kB / 469.9 MB, free: 32.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.813e-05/0.6453, allocations: 0 / 469.9 MB, free: 32.5 MB / 366.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.005081/0.6504, allocations: 2.076 MB / 472 MB, free: 31.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.6505, allocations: 13.28 kB / 472 MB, free: 31.22 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002822/0.6508, allocations: 181.6 kB / 472.2 MB, free: 31.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002868/0.6537, allocations: 375 kB / 472.5 MB, free: 30.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.6553, allocations: 0.7339 MB / 473.3 MB, free: 30.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.6555, allocations: 94.03 kB / 473.4 MB, free: 30.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000319/0.6558, allocations: 130.5 kB / 473.5 MB, free: 30.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004552/0.6604, allocations: 1.761 MB / 475.3 MB, free: 29.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.141e-05/0.6605, allocations: 0 / 475.3 MB, free: 29.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001914/0.6607, allocations: 50.22 kB / 475.3 MB, free: 29.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.35e-05/0.6607, allocations: 33.42 kB / 475.3 MB, free: 29.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006183/0.6669, allocations: 2.484 MB / 477.8 MB, free: 28.88 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.01694/0.6839, allocations: 5.12 MB / 482.9 MB, free: 26.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006941/0.6909, allocations: 2.242 MB / 485.2 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.6928, allocations: 0.5498 MB / 485.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01262/0.7055, allocations: 5.312 MB / 491 MB, free: 20.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.495e-05/0.7056, allocations: 44.12 kB / 491.1 MB, free: 20.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 6.072e-06/0.7057, allocations: 0 / 491.1 MB, free: 20.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.02546/0.7311, allocations: 3.369 MB / 494.5 MB, free: 19.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.3e-05/0.7312, allocations: 65.22 kB / 494.5 MB, free: 19.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00362/0.7349, allocations: 1.299 MB / 495.8 MB, free: 18.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001794/0.7351, allocations: 41.67 kB / 495.9 MB, free: 18.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007534/0.7359, allocations: 0.6775 MB / 496.5 MB, free: 17.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005159/0.7364, allocations: 321.5 kB / 496.8 MB, free: 17.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/0.7375, allocations: 287.1 kB / 497.1 MB, free: 17.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002654/0.7377, allocations: 363.3 kB / 497.5 MB, free: 17.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.7396, allocations: 0.5081 MB / 498 MB, free: 16.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/0.7419, allocations: 1.003 MB / 499 MB, free: 16.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003486/0.7454, allocations: 1.433 MB / 0.4887 GB, free: 15.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.723e-05/0.7455, allocations: 3.719 kB / 0.4887 GB, free: 15.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.008099/0.7536, allocations: 1.907 MB / 0.4906 GB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/0.7537, allocations: 11.97 kB / 0.4906 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.593e-05/0.7537, allocations: 16.14 kB / 0.4906 GB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003074/0.7568, allocations: 251.2 kB / 0.4908 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/0.7588, allocations: 359.9 kB / 0.4912 GB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008701/0.7676, allocations: 3.856 MB / 0.4949 GB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/0.7702, allocations: 48 kB / 0.495 GB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005244/0.7707, allocations: 86.78 kB / 0.4951 GB, free: 10.56 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.001433/0.7722, allocations: 290.9 kB / 0.4953 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006646/0.7729, allocations: 116.5 kB / 0.4955 GB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006592/0.7795, allocations: 1.251 MB / 0.4967 GB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/0.7796, allocations: 13.39 kB / 0.4967 GB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-05/0.7797, allocations: 0 / 0.4967 GB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.934e-05/0.7797, allocations: 9.016 kB / 0.4967 GB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/0.783, allocations: 1.104 MB / 0.4978 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/0.7831, allocations: 4 kB / 0.4978 GB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.7842, allocations: 175.8 kB / 0.4979 GB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00282/0.7871, allocations: 229.8 kB / 0.4982 GB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/0.7872, allocations: 32.48 kB / 0.4982 GB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006786/0.794, allocations: 3.778 MB / 0.5019 GB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.7941, allocations: 0 / 0.5019 GB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006555/0.8007, allocations: 1.599 MB / 0.5035 GB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000682/0.8014, allocations: 171.8 kB / 0.5036 GB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.8019, allocations: 24 kB / 0.5036 GB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.803, allocations: 20 kB / 0.5037 GB, free: 1.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002853/0.8033, allocations: 72.84 kB / 0.5037 GB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/0.8035, allocations: 39.98 kB / 0.5038 GB, free: 1.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001663/0.8052, allocations: 0.9101 MB / 0.5047 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8052, allocations: 3.938 kB / 0.5047 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004666/0.8099, allocations: 0.8353 MB / 0.5055 GB, free: 0 / 366.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.01277/0.8227, allocations: 3.051 MB / 0.5085 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00598/0.8287, allocations: 1.449 MB / 0.5099 GB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/0.8288, allocations: 0.5 kB / 0.5099 GB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.8308, allocations: 0.6864 MB / 0.5105 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.8335, allocations: 235.1 kB / 0.5108 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03601/0.8696, allocations: 11.06 MB / 0.5216 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/0.8711, allocations: 1.081 MB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002393/0.8735, allocations: 263.5 kB / 0.5229 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/0.8749, allocations: 0.5405 MB / 0.5234 GB, free: 12.79 MB / 398.1 MB Notification: Performance of SimCode: time 1.503e-06/0.8749, allocations: 0 / 0.5234 GB, free: 12.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1704/1.045, allocations: 37.85 MB / 0.5604 GB, free: 7.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.54/28.59, allocations: 15.47 kB / 0.5604 GB, free: 7.105 MB / 430.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)