Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.Hemoglobin.HemoglobinTitration,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_HemoglobinTitration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Hemoglobin.HemoglobinTitration,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_HemoglobinTitration",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.001215/0.001215, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.00135/0.00135, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1866/0.1866, allocations: 15.26 MB / 306.2 MB, free: 15.77 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.00032, allocations: 8 kB / 371.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2905, allocations: 54.61 MB / 426.1 MB, free: 39.82 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.Hemoglobin.HemoglobinTitration): time 0.01445/0.305, allocations: 20.14 MB / 446.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.06038/0.3654, allocations: 61.35 MB / 0.4957 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005888/0.3713, allocations: 99.41 kB / 0.4958 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005911/0.3773, allocations: 1.495 MB / 0.4972 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02061/0.3979, allocations: 5.741 MB / 0.5028 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02792/0.4259, allocations: 8.805 MB / 0.5114 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02056/0.4465, allocations: 15.92 MB / 0.527 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02044/0.467, allocations: 16.08 MB / 0.5427 GB, free: 4.254 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02328/0.4903, allocations: 14.53 MB / 0.5569 GB, free: 5.676 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02352/0.5139, allocations: 13.07 MB / 0.5696 GB, free: 8.566 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007659/0.5216, allocations: 1.426 MB / 0.571 GB, free: 7.141 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4333/0.9549, allocations: 9.968 MB / 0.5808 GB, free: 36.51 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009151/0.9641, allocations: 4.856 MB / 0.5855 GB, free: 36.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008555/0.9727, allocations: 3.226 MB / 0.5887 GB, free: 36.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04764/1.02, allocations: 30.25 MB / 0.6182 GB, free: 31.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/1.02, allocations: 3.562 kB / 0.6182 GB, free: 31.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.604e-06/1.02, allocations: 0 / 0.6182 GB, free: 31.56 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001839/1.022, allocations: 2.641 kB / 0.6182 GB, free: 31.56 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3812 * Number of variables: 3812 Notification: Performance of Generate backend data structure: time 0.07162/1.094, allocations: 20.27 MB / 0.638 GB, free: 21.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/1.094, allocations: 9.062 kB / 0.638 GB, free: 21.55 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01297/1.107, allocations: 2.008 MB / 0.64 GB, free: 20.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02641/1.133, allocations: 3.887 MB / 0.6438 GB, free: 17.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02873/1.162, allocations: 10.89 MB / 0.6544 GB, free: 9.664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001829/1.164, allocations: 2.132 MB / 0.6565 GB, free: 7.816 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01161/1.176, allocations: 1.527 MB / 0.658 GB, free: 6.789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09088/1.267, allocations: 34.57 MB / 0.6917 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006636/1.267, allocations: 10.84 kB / 0.6917 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009741/1.277, allocations: 0.5932 MB / 0.6923 GB, free: 14.83 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003165/1.277, allocations: 360 kB / 0.6927 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09929/1.377, allocations: 46.75 MB / 0.7383 GB, free: 7.027 MB / 0.4982 GB 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.5881/1.965, allocations: 127 MB / 0.8624 GB, free: 82.86 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.8221/2.787, allocations: 276 MB / 1.132 GB, free: 123.6 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1647/2.952, allocations: 86.97 MB / 1.217 GB, free: 38.62 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.213e-05/2.952, allocations: 134.3 kB / 1.217 GB, free: 38.48 MB / 0.5763 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02355/2.975, allocations: 4.44 MB / 1.221 GB, free: 34.13 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=996): time 4.971e-05/2.976, allocations: 0 / 1.221 GB, free: 34.13 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1130): time 0.9504/3.926, allocations: 136.8 MB / 1.355 GB, free: 168 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/3.926, allocations: 164.2 kB / 1.355 GB, free: 167.8 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01551/3.942, allocations: 10.08 MB / 1.365 GB, free: 157.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.00493/3.947, allocations: 213.7 kB / 1.365 GB, free: 157.6 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004846/3.952, allocations: 6.896 MB / 1.372 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.007574/3.959, allocations: 3.91 MB / 1.376 GB, free: 146.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004446/3.964, allocations: 296 kB / 1.376 GB, free: 146.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0008798/3.965, allocations: 0.8984 MB / 1.377 GB, free: 145.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02143/3.986, allocations: 11.77 MB / 1.388 GB, free: 133.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0237/4.01, allocations: 16.45 MB / 1.404 GB, free: 115.3 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02513/4.035, allocations: 14.09 MB / 1.418 GB, free: 101.2 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000158/4.035, allocations: 40 kB / 1.418 GB, free: 101.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1891) (initialization): time 0.6765/4.712, allocations: 81.43 MB / 1.498 GB, free: 190.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/4.712, allocations: 69.12 kB / 1.498 GB, free: 190.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/4.712, allocations: 150.2 kB / 1.498 GB, free: 190.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05868/4.771, allocations: 22.54 MB / 1.52 GB, free: 179.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0175/4.788, allocations: 3.737 MB / 1.524 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1755/4.964, allocations: 93.73 MB / 1.615 GB, free: 84.58 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01968/4.983, allocations: 1.145 MB / 1.616 GB, free: 83.47 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004976/4.988, allocations: 0.9328 MB / 1.617 GB, free: 82.54 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 677 * 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 (1843): * Single equations (assignments): 1840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(33,82.4%) 10} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.01456/5.003, allocations: 5.38 MB / 1.622 GB, free: 77.39 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004476/5.008, allocations: 1.057 MB / 1.623 GB, free: 76.89 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5287/5.536, allocations: 48.54 MB / 1.671 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001727/5.537, allocations: 123.3 kB / 1.671 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001603/5.537, allocations: 19.03 kB / 1.671 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003883/5.537, allocations: 59.34 kB / 1.671 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3268/5.864, allocations: 72.86 MB / 1.742 GB, free: 151.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001217/5.864, allocations: 4 kB / 1.742 GB, free: 151.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01501/5.879, allocations: 2.423 MB / 1.744 GB, free: 149.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03102/5.91, allocations: 11.78 MB / 1.756 GB, free: 137.5 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005517/5.916, allocations: 475.5 kB / 1.756 GB, free: 137 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09679/6.013, allocations: 44.76 MB / 1.8 GB, free: 91.93 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/6.013, allocations: 4 kB / 1.8 GB, free: 91.92 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5514/6.564, allocations: 63.35 MB / 1.862 GB, free: 182 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01555/6.58, allocations: 3.284 MB / 1.865 GB, free: 181.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005854/6.585, allocations: 298.9 kB / 1.866 GB, free: 181.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01538/6.601, allocations: 0.7881 MB / 1.866 GB, free: 181.4 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007541/6.608, allocations: 1.504 MB / 1.868 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003305/6.612, allocations: 474.8 kB / 1.868 GB, free: 181.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01331/6.625, allocations: 6.89 MB / 1.875 GB, free: 178.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.11e-07/6.625, allocations: 3.938 kB / 1.875 GB, free: 178.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.03718/6.662, allocations: 6.583 MB / 1.881 GB, free: 178.1 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 60 (solution.temperature,O2_free.logn,H2O.logn,relaxed.OxyHm[1].logn,relaxed.OxyHm[2].logn,relaxed.OxyHm[3].logn,relaxed.OxyHm[4].logn,relaxed.DeoxyHm[1].logn,relaxed.DeoxyHm[2].logn,relaxed.DeoxyHm[3].logn,relaxed.DeoxyHm[4].logn,relaxed.HmAH[1].logn,relaxed.HmAH[2].logn,relaxed.HmAH[3].logn,relaxed.HmAH[4].logn,relaxed.HmA[1].logn,relaxed.HmA[2].logn,relaxed.HmA[3].logn,relaxed.HmA[4].logn,relaxed.HmNH3[1].logn,relaxed.HmNH3[2].logn,relaxed.HmNH3[3].logn,relaxed.HmNH3[4].logn,relaxed.HmNH2[1].logn,relaxed.HmNH2[2].logn,relaxed.HmNH2[3].logn,relaxed.HmNH2[4].logn,relaxed.HmNHCOO[1].logn,relaxed.HmNHCOO[2].logn,relaxed.HmNHCOO[3].logn,relaxed.HmNHCOO[4].logn,tensed.OxyHm[1].logn,tensed.OxyHm[2].logn,tensed.OxyHm[3].logn,tensed.OxyHm[4].logn,tensed.DeoxyHm[1].logn,tensed.DeoxyHm[2].logn,tensed.DeoxyHm[3].logn,tensed.DeoxyHm[4].logn,tensed.HmAH[1].logn,tensed.HmAH[2].logn,tensed.HmAH[3].logn,tensed.HmAH[4].logn,tensed.HmA[1].logn,tensed.HmA[2].logn,tensed.HmA[3].logn,tensed.HmA[4].logn,tensed.HmNH3[1].logn,tensed.HmNH3[2].logn,tensed.HmNH3[3].logn,tensed.HmNH3[4].logn,tensed.HmNH2[1].logn,tensed.HmNH2[2].logn,tensed.HmNH2[3].logn,tensed.HmNH2[4].logn,tensed.HmNHCOO[1].logn,tensed.HmNHCOO[2].logn,tensed.HmNHCOO[3].logn,tensed.HmNHCOO[4].logn,CO2_free.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 (1235): * Single equations (assignments): 1232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(33,82.4%) 10} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.2969/6.959, allocations: 67.7 MB / 1.947 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.06551/7.025, allocations: 27.65 MB / 1.974 GB, free: 108 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/7.025, allocations: 0 / 1.974 GB, free: 108 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.03893/7.064, allocations: 14.85 MB / 1.989 GB, free: 93.07 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01326/7.077, allocations: 2.182 MB / 1.991 GB, free: 90.94 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4365/7.514, allocations: 198.6 MB / 2.185 GB, free: 58.11 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02513/7.539, allocations: 10.23 MB / 2.195 GB, free: 57.01 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0241/7.563, allocations: 5.288 MB / 2.2 GB, free: 56.78 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01748/7.58, allocations: 7.028 MB / 2.207 GB, free: 56.38 MB / 0.5919 GB Notification: Performance of SimCode: time 1.493e-06/7.58, allocations: 0 / 2.207 GB, free: 56.38 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.237/8.818, allocations: 424.1 MB / 2.621 GB, free: 125.2 MB / 0.592 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/8.818, allocations: 214.9 kB / 2.621 GB, free: 125 MB / 0.592 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/22.79, allocations: 0 / 2.621 GB, free: 125 MB / 0.592 GB (rm -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_Hemoglobin_HemoglobinTitration_fmu --startTime=0 --stopTime=100000 --timeout=50 --tolerance=1e-05 Chemical_Chemical_Examples_Hemoglobin_HemoglobinTitration.fmu > Chemical_Chemical.Examples.Hemoglobin.HemoglobinTitration.pipe 2>&1) Environment - environmentSimulation: