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.002107/0.002107, 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.004075/0.004075, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.999/2.999, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5566/0.5566, allocations: 15.32 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002664/0.002665, allocations: 59.91 kB / 370.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2347, allocations: 53.61 MB / 424 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.01843/0.2532, allocations: 10.3 MB / 434.3 MB, free: 3.859 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4205/0.6737, allocations: 32.88 MB / 467.2 MB, free: 30.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003322/0.6771, allocations: 23.16 kB / 467.2 MB, free: 30.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004433/0.6816, allocations: 0.6936 MB / 467.9 MB, free: 29.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01736/0.6991, allocations: 2.618 MB / 470.6 MB, free: 28.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02758/0.7267, allocations: 4.286 MB / 474.8 MB, free: 25.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007486/0.7343, allocations: 2.995 MB / 477.8 MB, free: 24.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003649/0.738, allocations: 1.654 MB / 479.5 MB, free: 23.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003828/0.7419, allocations: 1.447 MB / 480.9 MB, free: 22.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005972/0.748, allocations: 1.607 MB / 482.5 MB, free: 22.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00222/0.7503, allocations: 266.6 kB / 482.8 MB, free: 22.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02785/0.7782, allocations: 3.61 MB / 486.4 MB, free: 21.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002413/0.7807, allocations: 0.6066 MB / 487 MB, free: 20.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00578/0.7865, allocations: 1.334 MB / 488.4 MB, free: 20.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0359/0.8225, allocations: 6.571 MB / 494.9 MB, free: 17.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.594e-05/0.8226, allocations: 0 / 494.9 MB, free: 17.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.8226, allocations: 0 / 494.9 MB, free: 17.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002207/0.8229, allocations: 1.281 kB / 494.9 MB, free: 17.18 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: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.02211/0.845, allocations: 3.233 MB / 498.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001121/0.8452, allocations: 9.875 kB / 498.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002253/0.8474, allocations: 302.6 kB / 498.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007576/0.8551, allocations: 0.569 MB / 499 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007746/0.8629, allocations: 1.09 MB / 0.4884 GB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005565/0.8635, allocations: 160.8 kB / 0.4886 GB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002295/0.8658, allocations: 229.6 kB / 0.4888 GB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01378/0.8797, allocations: 2.786 MB / 0.4915 GB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.01e-05/0.8798, allocations: 3.938 kB / 0.4915 GB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000539/0.8804, allocations: 85.25 kB / 0.4916 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.159e-05/0.8805, allocations: 51.69 kB / 0.4916 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.8933, allocations: 3.779 MB / 0.4953 GB, free: 11.76 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.0206/0.914, allocations: 8.387 MB / 0.5035 GB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007795/0.9218, allocations: 3.952 MB / 0.5074 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002972/0.9249, allocations: 1.021 MB / 0.5084 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02503/0.9499, allocations: 9.224 MB / 0.5174 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.936e-05/0.9501, allocations: 43.88 kB / 0.5174 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001359/0.9515, allocations: 162.2 kB / 0.5176 GB, free: 4.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=138): time 8.727e-06/0.9515, allocations: 4 kB / 0.5176 GB, free: 4.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=170): time 0.04842/0.9999, allocations: 6.391 MB / 0.5238 GB, free: 13.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.03e-05/1, allocations: 69.41 kB / 0.5239 GB, free: 13.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003482/1.004, allocations: 1.667 MB / 0.5255 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000472/1.004, allocations: 53.64 kB / 0.5256 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/1.005, allocations: 1.038 MB / 0.5266 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/1.007, allocations: 0.5931 MB / 0.5272 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/1.008, allocations: 484.6 kB / 0.5276 GB, free: 9.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/1.008, allocations: 301.1 kB / 0.5279 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/1.01, allocations: 0.7897 MB / 0.5287 GB, free: 8.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003025/1.013, allocations: 1.597 MB / 0.5302 GB, free: 6.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005519/1.018, allocations: 2.417 MB / 0.5326 GB, free: 3.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.328e-05/1.018, allocations: 8 kB / 0.5326 GB, free: 3.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.01336/1.032, allocations: 3.131 MB / 0.5357 GB, free: 0.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.586e-05/1.032, allocations: 16 kB / 0.5357 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.317e-05/1.032, allocations: 28 kB / 0.5357 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005159/1.037, allocations: 487 kB / 0.5362 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/1.041, allocations: 0.5889 MB / 0.5367 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01902/1.06, allocations: 7.713 MB / 0.5443 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003957/1.064, allocations: 80 kB / 0.5443 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007701/1.065, allocations: 144 kB / 0.5445 GB, free: 6.984 MB / 414.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.00164/1.067, allocations: 425 kB / 0.5449 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009712/1.068, allocations: 169.8 kB / 0.5451 GB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.079, allocations: 2.395 MB / 0.5474 GB, free: 3.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.049e-05/1.079, allocations: 20 kB / 0.5474 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/1.079, allocations: 0 / 0.5474 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.556e-05/1.079, allocations: 7.969 kB / 0.5474 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005774/1.085, allocations: 1.869 MB / 0.5492 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.984e-05/1.085, allocations: 4 kB / 0.5492 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002184/1.087, allocations: 343.6 kB / 0.5496 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00485/1.092, allocations: 459.1 kB / 0.55 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005393/1.092, allocations: 63.97 kB / 0.5501 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01693/1.109, allocations: 7.539 MB / 0.5574 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.11, allocations: 0 / 0.5574 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01284/1.122, allocations: 3.007 MB / 0.5604 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/1.124, allocations: 238.8 kB / 0.5606 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006912/1.124, allocations: 39.94 kB / 0.5606 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/1.126, allocations: 36 kB / 0.5607 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005097/1.127, allocations: 157.8 kB / 0.5608 GB, free: 5.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.127, allocations: 67.97 kB / 0.5609 GB, free: 5.438 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002392/1.129, allocations: 1.137 MB / 0.562 GB, free: 4.301 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.129, allocations: 0 / 0.562 GB, free: 4.301 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009716/1.139, allocations: 1.358 MB / 0.5633 GB, free: 2.941 MB / 430.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.02541/1.164, allocations: 4.944 MB / 0.5682 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01489/1.179, allocations: 2.582 MB / 0.5707 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/1.179, allocations: 3.938 kB / 0.5707 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004791/1.184, allocations: 1.353 MB / 0.572 GB, free: 9.898 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/1.189, allocations: 374.8 kB / 0.5724 GB, free: 9.543 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05867/1.248, allocations: 17.7 MB / 0.5896 GB, free: 6.254 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/1.249, allocations: 1.378 MB / 0.591 GB, free: 4.844 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003307/1.253, allocations: 436.3 kB / 0.5914 GB, free: 4.414 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/1.255, allocations: 0.9592 MB / 0.5923 GB, free: 3.457 MB / 462.1 MB Notification: Performance of SimCode: time 2.545e-06/1.255, allocations: 0 / 0.5923 GB, free: 3.457 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6017/1.856, allocations: 61.44 MB / 0.6523 GB, free: 111.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.02/30.88, allocations: 15.33 kB / 0.6524 GB, free: 111.8 MB / 462.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)