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.005297/0.005297, allocations: 99.11 kB / 15.73 MB, free: 6.039 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.001313/0.001313, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2396/0.2396, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 63.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3028, allocations: 53.6 MB / 478.3 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility): time 0.009551/0.3124, allocations: 10.3 MB / 488.6 MB, free: 18.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03415/0.3466, allocations: 32.89 MB / 0.5093 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002655/0.3493, allocations: 27.62 kB / 0.5093 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003079/0.3524, allocations: 0.696 MB / 0.51 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01166/0.3641, allocations: 2.619 MB / 0.5126 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01331/0.3775, allocations: 4.271 MB / 0.5167 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005335/0.3828, allocations: 3.019 MB / 0.5197 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002491/0.3853, allocations: 1.659 MB / 0.5213 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.3877, allocations: 1.457 MB / 0.5227 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00302/0.3907, allocations: 1.604 MB / 0.5243 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000722/0.3915, allocations: 268 kB / 0.5245 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01327/0.4047, allocations: 3.616 MB / 0.5281 GB, free: 3.961 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.4059, allocations: 0.5997 MB / 0.5287 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002132/0.4081, allocations: 1.334 MB / 0.53 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02044/0.4285, allocations: 6.642 MB / 0.5364 GB, free: 11.35 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4286, allocations: 0 / 0.5364 GB, free: 11.35 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4286, allocations: 0 / 0.5364 GB, free: 11.35 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.799e-05/0.4287, allocations: 0 / 0.5364 GB, free: 11.35 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.007197/0.4359, allocations: 3.326 MB / 0.5397 GB, free: 7.953 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.4359, allocations: 11.97 kB / 0.5397 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003541/0.4363, allocations: 291.9 kB / 0.54 GB, free: 7.645 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/0.4389, allocations: 0.5804 MB / 0.5405 GB, free: 7.062 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.441, allocations: 1.135 MB / 0.5417 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.4412, allocations: 164.6 kB / 0.5418 GB, free: 5.719 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003864/0.4416, allocations: 216.3 kB / 0.542 GB, free: 5.508 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004828/0.4464, allocations: 2.79 MB / 0.5447 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/0.4465, allocations: 4 kB / 0.5447 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/0.4467, allocations: 88 kB / 0.5448 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.842e-05/0.4467, allocations: 52 kB / 0.5449 GB, free: 2.492 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006169/0.4529, allocations: 3.78 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.01521/0.4682, allocations: 8.336 MB / 0.5567 GB, free: 6.043 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006316/0.4745, allocations: 3.954 MB / 0.5606 GB, free: 1.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.4763, allocations: 1.017 MB / 0.5616 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01376/0.4901, allocations: 9.235 MB / 0.5706 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.882e-05/0.4901, allocations: 47.86 kB / 0.5706 GB, free: 6.57 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005888/0.4907, allocations: 170.6 kB / 0.5708 GB, free: 6.402 MB / 446.1 MB Notification: Performance of pre-optimization done (n=138): time 3.947e-06/0.4907, allocations: 0 / 0.5708 GB, free: 6.402 MB / 446.1 MB Notification: Performance of matching and sorting (n=170): time 0.02956/0.5203, allocations: 6.426 MB / 0.5771 GB, free: 15.89 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.5204, allocations: 81.28 kB / 0.5771 GB, free: 15.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002299/0.5227, allocations: 1.668 MB / 0.5788 GB, free: 14.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002874/0.523, allocations: 53.7 kB / 0.5788 GB, free: 14.05 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008314/0.5239, allocations: 1.073 MB / 0.5799 GB, free: 12.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007186/0.5246, allocations: 0.6198 MB / 0.5805 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007124/0.5253, allocations: 476.8 kB / 0.5809 GB, free: 11.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5255, allocations: 309.1 kB / 0.5812 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.5269, allocations: 0.7897 MB / 0.582 GB, free: 10.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002185/0.5291, allocations: 1.6 MB / 0.5836 GB, free: 8.809 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003787/0.5329, allocations: 2.417 MB / 0.5859 GB, free: 6.031 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/0.5329, allocations: 8 kB / 0.5859 GB, free: 6.023 MB / 462.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.008853/0.5418, allocations: 3.136 MB / 0.589 GB, free: 2.867 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.5419, allocations: 16 kB / 0.589 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.27e-05/0.5419, allocations: 24 kB / 0.589 GB, free: 2.828 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003765/0.5457, allocations: 491.1 kB / 0.5895 GB, free: 2.336 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/0.548, allocations: 0.585 MB / 0.5901 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/0.5596, allocations: 7.708 MB / 0.5976 GB, free: 9.496 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.5615, allocations: 84.06 kB / 0.5977 GB, free: 9.414 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000321/0.5618, allocations: 140 kB / 0.5978 GB, free: 9.277 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.0008257/0.5627, allocations: 420.9 kB / 0.5982 GB, free: 8.855 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004099/0.5631, allocations: 174.9 kB / 0.5984 GB, free: 8.684 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007687/0.5708, allocations: 2.405 MB / 0.6007 GB, free: 6.254 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.5708, allocations: 16 kB / 0.6007 GB, free: 6.238 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.5708, allocations: 4 kB / 0.6007 GB, free: 6.234 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/0.5709, allocations: 7.969 kB / 0.6008 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.574, allocations: 1.863 MB / 0.6026 GB, free: 4.281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.5741, allocations: 4 kB / 0.6026 GB, free: 4.277 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.5754, allocations: 335.6 kB / 0.6029 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003717/0.5791, allocations: 463 kB / 0.6033 GB, free: 3.484 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/0.5794, allocations: 63.97 kB / 0.6034 GB, free: 3.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2357/0.815, allocations: 7.526 MB / 0.6107 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.8151, allocations: 2.5 kB / 0.6108 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008745/0.8238, allocations: 3.009 MB / 0.6137 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004859/0.8244, allocations: 250.4 kB / 0.6139 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.8246, allocations: 36.3 kB / 0.614 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008902/0.8255, allocations: 44.16 kB / 0.614 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003938/0.8259, allocations: 151.7 kB / 0.6142 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.826, allocations: 72.16 kB / 0.6142 GB, free: 115.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001411/0.8275, allocations: 1.136 MB / 0.6153 GB, free: 114.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8275, allocations: 0 / 0.6153 GB, free: 114.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004762/0.8322, allocations: 1.377 MB / 0.6167 GB, free: 114.5 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.01098/0.8432, allocations: 4.975 MB / 0.6215 GB, free: 112.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003966/0.8472, allocations: 2.505 MB / 0.624 GB, free: 111.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.8473, allocations: 3.062 kB / 0.624 GB, free: 111.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001805/0.8491, allocations: 1.357 MB / 0.6253 GB, free: 110.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.8508, allocations: 376.3 kB / 0.6257 GB, free: 110.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02831/0.8791, allocations: 16.53 MB / 0.6418 GB, free: 101.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007241/0.8799, allocations: 1.382 MB / 0.6432 GB, free: 100.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001524/0.8814, allocations: 432.4 kB / 0.6436 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009968/0.8824, allocations: 0.9554 MB / 0.6445 GB, free: 99.84 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8824, allocations: 0 / 0.6445 GB, free: 99.84 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1339/1.016, allocations: 62.17 MB / 0.7052 GB, free: 38.45 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.51/19.52, allocations: 7.922 kB / 0.7052 GB, free: 38.45 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 & /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)