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.001164/0.001163, allocations: 112.5 kB / 15.73 MB, free: 76 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.001331/0.001331, allocations: 187.9 kB / 16.66 MB, free: 6.582 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.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.2408/0.2408, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002443/0.002443, allocations: 67.89 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3336, allocations: 53.6 MB / 478.3 MB, free: 25.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.009225/0.3429, allocations: 10.31 MB / 488.6 MB, free: 18.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03476/0.3777, allocations: 32.9 MB / 0.5093 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.3799, allocations: 21.88 kB / 0.5093 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.3819, allocations: 0.6936 MB / 0.51 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.39, allocations: 2.638 MB / 0.5126 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01222/0.4022, allocations: 4.314 MB / 0.5168 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004928/0.4072, allocations: 3.015 MB / 0.5197 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002241/0.4094, allocations: 1.655 MB / 0.5213 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.4112, allocations: 1.461 MB / 0.5228 GB, free: 9.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002269/0.4134, allocations: 1.612 MB / 0.5243 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003856/0.4138, allocations: 260 kB / 0.5246 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01174/0.4256, allocations: 3.608 MB / 0.5281 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.4266, allocations: 0.6037 MB / 0.5287 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00231/0.429, allocations: 1.338 MB / 0.53 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0221/0.4511, allocations: 6.642 MB / 0.5365 GB, free: 11.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.4511, allocations: 0 / 0.5365 GB, free: 11.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4511, allocations: 0 / 0.5365 GB, free: 11.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.726e-05/0.4512, allocations: 0 / 0.5365 GB, free: 11.3 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.006627/0.4578, allocations: 3.326 MB / 0.5397 GB, free: 7.906 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4579, allocations: 12.03 kB / 0.5397 GB, free: 7.895 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003476/0.4582, allocations: 291.9 kB / 0.54 GB, free: 7.598 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002654/0.4609, allocations: 0.5843 MB / 0.5406 GB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.463, allocations: 1.131 MB / 0.5417 GB, free: 5.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.4631, allocations: 164.6 kB / 0.5419 GB, free: 5.672 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003788/0.4635, allocations: 220.3 kB / 0.5421 GB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004373/0.4679, allocations: 2.786 MB / 0.5448 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.468, allocations: 0 / 0.5448 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002116/0.4682, allocations: 88 kB / 0.5449 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.4682, allocations: 52 kB / 0.5449 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005454/0.4737, allocations: 3.78 MB / 0.5486 GB, free: 14.65 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.01439/0.4881, allocations: 8.34 MB / 0.5568 GB, free: 6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006045/0.4942, allocations: 3.957 MB / 0.5606 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.4959, allocations: 1.013 MB / 0.5616 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01388/0.5098, allocations: 9.235 MB / 0.5706 GB, free: 6.586 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.5099, allocations: 47.81 kB / 0.5707 GB, free: 6.527 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000726/0.5106, allocations: 174.6 kB / 0.5708 GB, free: 6.355 MB / 446.1 MB Notification: Performance of pre-optimization done (n=138): time 4.599e-06/0.5106, allocations: 0 / 0.5708 GB, free: 6.355 MB / 446.1 MB Notification: Performance of matching and sorting (n=170): time 0.02845/0.5391, allocations: 6.426 MB / 0.5771 GB, free: 15.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.5392, allocations: 73.41 kB / 0.5772 GB, free: 15.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/0.5415, allocations: 1.66 MB / 0.5788 GB, free: 14.08 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002339/0.5418, allocations: 61.64 kB / 0.5789 GB, free: 14.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007778/0.5425, allocations: 1.077 MB / 0.5799 GB, free: 12.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005981/0.5431, allocations: 0.6121 MB / 0.5805 GB, free: 12.31 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006926/0.5438, allocations: 480.8 kB / 0.581 GB, free: 11.83 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.544, allocations: 305.1 kB / 0.5813 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.5453, allocations: 0.7936 MB / 0.582 GB, free: 10.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002078/0.5474, allocations: 1.596 MB / 0.5836 GB, free: 8.773 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00354/0.551, allocations: 2.421 MB / 0.586 GB, free: 5.992 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.426e-05/0.551, allocations: 8 kB / 0.586 GB, free: 5.984 MB / 462.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008233/0.5592, allocations: 3.144 MB / 0.589 GB, free: 2.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.5593, allocations: 16 kB / 0.5891 GB, free: 2.805 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.855e-05/0.5594, allocations: 24 kB / 0.5891 GB, free: 2.781 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003666/0.563, allocations: 487 kB / 0.5895 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.5651, allocations: 0.5928 MB / 0.5901 GB, free: 1.699 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.5762, allocations: 7.708 MB / 0.5976 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/0.5784, allocations: 80 kB / 0.5977 GB, free: 9.367 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003011/0.5788, allocations: 140 kB / 0.5979 GB, free: 9.23 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.0009689/0.5797, allocations: 428.8 kB / 0.5983 GB, free: 8.801 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000637/0.5804, allocations: 174.9 kB / 0.5984 GB, free: 8.629 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00737/0.5878, allocations: 2.397 MB / 0.6008 GB, free: 6.207 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/0.5878, allocations: 16 kB / 0.6008 GB, free: 6.191 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5878, allocations: 4 kB / 0.6008 GB, free: 6.188 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.34e-05/0.5879, allocations: 7.969 kB / 0.6008 GB, free: 6.18 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.5908, allocations: 1.863 MB / 0.6026 GB, free: 4.234 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.5908, allocations: 3.984 kB / 0.6026 GB, free: 4.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.5922, allocations: 343.5 kB / 0.603 GB, free: 3.895 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003659/0.5958, allocations: 459.2 kB / 0.6034 GB, free: 3.434 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/0.5961, allocations: 59.97 kB / 0.6034 GB, free: 3.375 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2473/0.8434, allocations: 7.519 MB / 0.6108 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.8434, allocations: 10.78 kB / 0.6108 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008344/0.8518, allocations: 3.009 MB / 0.6137 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007165/0.8525, allocations: 250.2 kB / 0.614 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003449/0.8529, allocations: 39.75 kB / 0.614 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.854, allocations: 40.09 kB / 0.6141 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/0.8544, allocations: 146.5 kB / 0.6142 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001785/0.8546, allocations: 77.83 kB / 0.6143 GB, free: 115 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001636/0.8563, allocations: 1.131 MB / 0.6154 GB, free: 114.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.32e-07/0.8563, allocations: 0 / 0.6154 GB, free: 114.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005089/0.8614, allocations: 1.384 MB / 0.6167 GB, free: 114.4 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.01128/0.8727, allocations: 4.982 MB / 0.6216 GB, free: 112.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004258/0.877, allocations: 2.503 MB / 0.624 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.877, allocations: 0 / 0.624 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001966/0.879, allocations: 1.362 MB / 0.6254 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.001869/0.8809, allocations: 359.4 kB / 0.6257 GB, free: 110.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02898/0.9098, allocations: 16.52 MB / 0.6418 GB, free: 101.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.9106, allocations: 1.385 MB / 0.6432 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001457/0.912, allocations: 442.8 kB / 0.6436 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009812/0.913, allocations: 0.9591 MB / 0.6445 GB, free: 99.73 MB / 478.1 MB Notification: Performance of SimCode: time 4.91e-07/0.913, allocations: 0 / 0.6445 GB, free: 99.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09253/1.006, allocations: 62.16 MB / 0.7052 GB, free: 38.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.76/19.77, allocations: 3.859 kB / 0.7053 GB, free: 38.31 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)