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.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,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.006223/0.006223, allocations: 99.27 kB / 15.73 MB, free: 6.445 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.001491/0.001491, allocations: 194.5 kB / 16.67 MB, free: 6.348 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2378/0.2378, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 63.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2746, allocations: 53.62 MB / 478.3 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.009308/0.284, allocations: 10.3 MB / 488.6 MB, free: 18.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03484/0.3188, allocations: 32.89 MB / 0.5093 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/0.3213, allocations: 24.25 kB / 0.5093 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.324, allocations: 0.6922 MB / 0.51 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009431/0.3335, allocations: 2.623 MB / 0.5125 GB, free: 3.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01302/0.3465, allocations: 4.275 MB / 0.5167 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006047/0.3526, allocations: 3.019 MB / 0.5197 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003121/0.3558, allocations: 1.651 MB / 0.5213 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003192/0.359, allocations: 1.457 MB / 0.5227 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003457/0.3625, allocations: 1.612 MB / 0.5243 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001085/0.3636, allocations: 260 kB / 0.5245 GB, free: 7.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01504/0.3787, allocations: 3.616 MB / 0.5281 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3798, allocations: 0.6037 MB / 0.5286 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.382, allocations: 1.33 MB / 0.5299 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01812/0.4002, allocations: 6.646 MB / 0.5364 GB, free: 11.36 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.4002, allocations: 0 / 0.5364 GB, free: 11.36 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4002, allocations: 0 / 0.5364 GB, free: 11.36 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.07e-05/0.4003, allocations: 0 / 0.5364 GB, free: 11.36 MB / 414.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.006986/0.4073, allocations: 3.322 MB / 0.5397 GB, free: 7.961 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4074, allocations: 12.03 kB / 0.5397 GB, free: 7.949 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000387/0.4078, allocations: 291.9 kB / 0.54 GB, free: 7.652 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002799/0.4106, allocations: 0.5804 MB / 0.5405 GB, free: 7.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/0.4129, allocations: 1.143 MB / 0.5417 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.4131, allocations: 164.6 kB / 0.5418 GB, free: 5.719 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003954/0.4135, allocations: 220.3 kB / 0.542 GB, free: 5.504 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005219/0.4187, allocations: 2.783 MB / 0.5447 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/0.4188, allocations: 3.938 kB / 0.5447 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002154/0.419, allocations: 88 kB / 0.5448 GB, free: 2.547 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-05/0.419, allocations: 48 kB / 0.5449 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006429/0.4255, allocations: 3.784 MB / 0.5486 GB, free: 14.7 MB / 430.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.01675/0.4423, allocations: 8.344 MB / 0.5567 GB, free: 6.039 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006953/0.4492, allocations: 3.946 MB / 0.5606 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002241/0.4515, allocations: 1.017 MB / 0.5616 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01631/0.4679, allocations: 9.235 MB / 0.5706 GB, free: 6.633 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.477e-05/0.468, allocations: 51.81 kB / 0.5706 GB, free: 6.57 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008537/0.4688, allocations: 174.6 kB / 0.5708 GB, free: 6.398 MB / 446.1 MB Notification: Performance of pre-optimization done (n=138): time 5.631e-06/0.4689, allocations: 0 / 0.5708 GB, free: 6.398 MB / 446.1 MB Notification: Performance of matching and sorting (n=170): time 0.02868/0.4975, allocations: 6.422 MB / 0.5771 GB, free: 15.89 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.4976, allocations: 69.41 kB / 0.5771 GB, free: 15.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/0.5, allocations: 1.671 MB / 0.5788 GB, free: 14.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.5002, allocations: 57.7 kB / 0.5788 GB, free: 14.06 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000947/0.5012, allocations: 1.069 MB / 0.5799 GB, free: 12.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006709/0.5019, allocations: 0.6159 MB / 0.5805 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007082/0.5026, allocations: 484.8 kB / 0.5809 GB, free: 11.88 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.5027, allocations: 309.1 kB / 0.5812 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.5041, allocations: 0.7936 MB / 0.582 GB, free: 10.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.5064, allocations: 1.589 MB / 0.5835 GB, free: 8.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/0.5101, allocations: 2.421 MB / 0.5859 GB, free: 6.039 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.5102, allocations: 8 kB / 0.5859 GB, free: 6.031 MB / 462.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.0086/0.5188, allocations: 3.136 MB / 0.589 GB, free: 2.875 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.5188, allocations: 20.03 kB / 0.589 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-05/0.5189, allocations: 28 kB / 0.589 GB, free: 2.828 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003706/0.5226, allocations: 486.9 kB / 0.5895 GB, free: 2.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/0.5251, allocations: 0.5889 MB / 0.5901 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/0.5372, allocations: 7.709 MB / 0.5976 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.5391, allocations: 80 kB / 0.5977 GB, free: 9.414 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/0.5394, allocations: 148 kB / 0.5978 GB, free: 9.27 MB / 478.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008607/0.5403, allocations: 412.9 kB / 0.5982 GB, free: 8.855 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004491/0.5408, allocations: 178.9 kB / 0.5984 GB, free: 8.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007907/0.5487, allocations: 2.402 MB / 0.6007 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.5487, allocations: 16 kB / 0.6007 GB, free: 6.238 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.5487, allocations: 3.938 kB / 0.6007 GB, free: 6.234 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.319e-05/0.5488, allocations: 11.97 kB / 0.6008 GB, free: 6.223 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003218/0.552, allocations: 1.859 MB / 0.6026 GB, free: 4.281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.552, allocations: 0 / 0.6026 GB, free: 4.281 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.5534, allocations: 335.6 kB / 0.6029 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003617/0.557, allocations: 471.1 kB / 0.6033 GB, free: 3.48 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/0.5572, allocations: 59.97 kB / 0.6034 GB, free: 3.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.258/0.8153, allocations: 7.527 MB / 0.6107 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.8153, allocations: 6.125 kB / 0.6108 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008467/0.8238, allocations: 3.009 MB / 0.6137 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005839/0.8244, allocations: 250 kB / 0.6139 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002656/0.8247, allocations: 35.95 kB / 0.614 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009005/0.8256, allocations: 38 kB / 0.614 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004156/0.826, allocations: 152 kB / 0.6141 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001703/0.8262, allocations: 71.69 kB / 0.6142 GB, free: 115 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001407/0.8276, allocations: 1.136 MB / 0.6153 GB, free: 114.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8276, allocations: 0 / 0.6153 GB, free: 114.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004675/0.8323, allocations: 1.379 MB / 0.6167 GB, free: 114.3 MB / 478.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01087/0.8432, allocations: 4.971 MB / 0.6215 GB, free: 112.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004348/0.8476, allocations: 2.505 MB / 0.624 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.8476, allocations: 0 / 0.624 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.8498, allocations: 1.364 MB / 0.6253 GB, free: 110.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.8517, allocations: 370.8 kB / 0.6257 GB, free: 110.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02891/0.8806, allocations: 16.54 MB / 0.6418 GB, free: 101.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00073/0.8814, allocations: 1.376 MB / 0.6431 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0017/0.8831, allocations: 440.7 kB / 0.6436 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/0.8843, allocations: 0.9563 MB / 0.6445 GB, free: 99.81 MB / 478.1 MB Notification: Performance of SimCode: time 1.283e-06/0.8843, allocations: 0 / 0.6445 GB, free: 99.81 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1418/1.026, allocations: 62.16 MB / 0.7052 GB, free: 38.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.79/20.81, allocations: 5.828 kB / 0.7052 GB, free: 38.48 MB / 478.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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.GasSolubility_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.fmu > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)