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.0063/0.0063, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001217/0.001217, allocations: 197 kB / 16.68 MB, free: 5.926 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07998/0.07998, allocations: 15.31 MB / 305.8 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 64.12 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.1006, allocations: 53.61 MB / 478.3 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.01123/0.1119, allocations: 10.3 MB / 488.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2653/0.3773, allocations: 32.87 MB / 0.5092 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.379, allocations: 25.84 kB / 0.5093 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.3809, allocations: 0.6984 MB / 0.5099 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007598/0.3886, allocations: 2.615 MB / 0.5125 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01152/0.4001, allocations: 4.286 MB / 0.5167 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00488/0.405, allocations: 3.011 MB / 0.5196 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.4077, allocations: 1.663 MB / 0.5212 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002206/0.4099, allocations: 1.46 MB / 0.5227 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002123/0.4121, allocations: 1.605 MB / 0.5242 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004215/0.4125, allocations: 265.9 kB / 0.5245 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01335/0.4258, allocations: 3.617 MB / 0.528 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001044/0.4269, allocations: 0.6056 MB / 0.5286 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002053/0.429, allocations: 1.326 MB / 0.5299 GB, free: 14.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01776/0.4468, allocations: 6.623 MB / 0.5364 GB, free: 12.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4468, allocations: 0 / 0.5364 GB, free: 12.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4468, allocations: 4 kB / 0.5364 GB, free: 12.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.18e-05/0.4469, allocations: 2.781 kB / 0.5364 GB, free: 12.02 MB / 398.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.006225/0.4531, allocations: 3.222 MB / 0.5395 GB, free: 9.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.4532, allocations: 13.06 kB / 0.5395 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003167/0.4535, allocations: 296.7 kB / 0.5398 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002418/0.4559, allocations: 0.5664 MB / 0.5404 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.4577, allocations: 1.132 MB / 0.5415 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.786e-05/0.4578, allocations: 163.1 kB / 0.5416 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003002/0.4581, allocations: 221.5 kB / 0.5419 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003875/0.462, allocations: 2.782 MB / 0.5446 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.4621, allocations: 4 kB / 0.5446 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.4623, allocations: 84 kB / 0.5447 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.509e-05/0.4623, allocations: 55.94 kB / 0.5447 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004967/0.4673, allocations: 3.78 MB / 0.5484 GB, free: 2.336 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.01276/0.4801, allocations: 8.32 MB / 0.5565 GB, free: 9.816 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005449/0.4855, allocations: 3.952 MB / 0.5604 GB, free: 5.738 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.4869, allocations: 1.018 MB / 0.5614 GB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/0.4991, allocations: 9.216 MB / 0.5704 GB, free: 10.51 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.4992, allocations: 47.81 kB / 0.5704 GB, free: 10.45 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006368/0.4999, allocations: 170.1 kB / 0.5706 GB, free: 10.28 MB / 430.1 MB Notification: Performance of pre-optimization done (n=138): time 8.265e-06/0.4999, allocations: 0 / 0.5706 GB, free: 10.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=170): time 0.03061/0.5305, allocations: 6.404 MB / 0.5768 GB, free: 3.801 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.5306, allocations: 69.41 kB / 0.5769 GB, free: 3.719 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/0.5328, allocations: 1.656 MB / 0.5785 GB, free: 2.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.533, allocations: 58.64 kB / 0.5786 GB, free: 1.988 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006778/0.5337, allocations: 1.043 MB / 0.5796 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000588/0.5343, allocations: 0.5906 MB / 0.5802 GB, free: 364 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000825/0.5352, allocations: 481.2 kB / 0.5806 GB, free: 15.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.883e-05/0.5353, allocations: 301.1 kB / 0.5809 GB, free: 15.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.5366, allocations: 0.7974 MB / 0.5817 GB, free: 14.78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.5385, allocations: 1.595 MB / 0.5833 GB, free: 12.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003261/0.5418, allocations: 2.421 MB / 0.5856 GB, free: 10.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.866e-05/0.5418, allocations: 4 kB / 0.5856 GB, free: 10.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008806/0.5506, allocations: 3.127 MB / 0.5887 GB, free: 6.898 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.5507, allocations: 17.41 kB / 0.5887 GB, free: 6.883 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.96e-05/0.5508, allocations: 24 kB / 0.5887 GB, free: 6.859 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004139/0.5549, allocations: 491.1 kB / 0.5892 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002174/0.5571, allocations: 0.588 MB / 0.5898 GB, free: 5.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.5678, allocations: 7.705 MB / 0.5973 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.5699, allocations: 79.98 kB / 0.5974 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004524/0.5703, allocations: 147.9 kB / 0.5975 GB, free: 13.3 MB / 462.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.001072/0.5714, allocations: 425 kB / 0.5979 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005329/0.572, allocations: 169.8 kB / 0.5981 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008182/0.5802, allocations: 2.402 MB / 0.6004 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.5802, allocations: 16 kB / 0.6004 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.5802, allocations: 4 kB / 0.6004 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.437e-05/0.5803, allocations: 7.969 kB / 0.6004 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.5834, allocations: 1.855 MB / 0.6023 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/0.5834, allocations: 4 kB / 0.6023 GB, free: 8.367 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.5848, allocations: 347.8 kB / 0.6026 GB, free: 8.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004133/0.589, allocations: 458.8 kB / 0.603 GB, free: 7.566 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002668/0.5892, allocations: 59.97 kB / 0.6031 GB, free: 7.508 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009907/0.5992, allocations: 7.527 MB / 0.6104 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.5992, allocations: 4.031 kB / 0.6104 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008772/0.608, allocations: 2.998 MB / 0.6134 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/0.6086, allocations: 246.8 kB / 0.6136 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004542/0.6091, allocations: 32 kB / 0.6136 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.6102, allocations: 40 kB / 0.6137 GB, free: 12.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003478/0.6106, allocations: 153.8 kB / 0.6138 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.6108, allocations: 71.97 kB / 0.6139 GB, free: 11.83 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001495/0.6123, allocations: 1.129 MB / 0.615 GB, free: 10.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6123, allocations: 0 / 0.615 GB, free: 10.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004458/0.6168, allocations: 1.37 MB / 0.6163 GB, free: 9.328 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.01212/0.6289, allocations: 4.935 MB / 0.6211 GB, free: 4.512 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004466/0.6334, allocations: 2.508 MB / 0.6236 GB, free: 1.957 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.6335, allocations: 2.422 kB / 0.6236 GB, free: 1.957 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.6356, allocations: 1.361 MB / 0.6249 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.6379, allocations: 372.7 kB / 0.6253 GB, free: 196 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03435/0.6722, allocations: 16.44 MB / 0.6413 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.6736, allocations: 1.378 MB / 0.6427 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001778/0.6754, allocations: 434 kB / 0.6431 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001415/0.6769, allocations: 0.9553 MB / 0.644 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/0.6769, allocations: 0 / 0.644 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.112/0.7889, allocations: 63.08 MB / 0.7056 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.43/19.22, allocations: 11.78 kB / 0.7056 GB, free: 13.14 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility.fmu > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)