Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.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.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",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.006884/0.006884, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001338/0.001338, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.361/1.361, 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.205/0.205, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 67.89 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2742, allocations: 53.6 MB / 478.3 MB, free: 25.54 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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.1-master/package.mo:4740:7-4740:66: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.Allosteric_Hemoglobin2_MWC): time 0.03387/0.3081, allocations: 29.27 MB / 0.4957 GB, free: 5.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02884/0.337, allocations: 26.07 MB / 0.5212 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.339, allocations: 23.88 kB / 0.5212 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002037/0.3411, allocations: 0.601 MB / 0.5218 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006824/0.3479, allocations: 2.161 MB / 0.5239 GB, free: 8.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009635/0.3576, allocations: 3.542 MB / 0.5273 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009364/0.367, allocations: 7.398 MB / 0.5346 GB, free: 13.49 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007034/0.374, allocations: 5.931 MB / 0.5404 GB, free: 7.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006714/0.3808, allocations: 4.873 MB / 0.5451 GB, free: 2.602 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007406/0.3882, allocations: 4.62 MB / 0.5496 GB, free: 13.97 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002903/0.3911, allocations: 0.668 MB / 0.5503 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01213/0.4033, allocations: 3.328 MB / 0.5535 GB, free: 9.969 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003515/0.4068, allocations: 1.788 MB / 0.5553 GB, free: 8.176 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006027/0.4129, allocations: 3.33 MB / 0.5585 GB, free: 4.832 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02072/0.4336, allocations: 11.15 MB / 0.5694 GB, free: 9.648 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.4337, allocations: 0 / 0.5694 GB, free: 9.648 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4337, allocations: 0 / 0.5694 GB, free: 9.648 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003434/0.434, allocations: 0 / 0.5694 GB, free: 9.648 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: 1226 * Number of variables: 1226 Notification: Performance of Generate backend data structure: time 0.02165/0.4557, allocations: 7.588 MB / 0.5768 GB, free: 1.973 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4558, allocations: 16.02 kB / 0.5768 GB, free: 1.957 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001938/0.4577, allocations: 0.6579 MB / 0.5775 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006885/0.4646, allocations: 1.241 MB / 0.5787 GB, free: 44 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008882/0.4735, allocations: 3.233 MB / 0.5819 GB, free: 12.73 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008035/0.4743, allocations: 0.6765 MB / 0.5825 GB, free: 11.99 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002368/0.4767, allocations: 0.4924 MB / 0.583 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02115/0.4979, allocations: 9.368 MB / 0.5921 GB, free: 2.02 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001975/0.4981, allocations: 3.938 kB / 0.5921 GB, free: 2.016 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001656/0.4998, allocations: 196 kB / 0.5923 GB, free: 1.824 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001016/0.4999, allocations: 116 kB / 0.5924 GB, free: 1.711 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02394/0.5239, allocations: 12.59 MB / 0.6047 GB, free: 5.098 MB / 478.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.2609/0.7848, allocations: 30.21 MB / 0.6342 GB, free: 97.14 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05528/0.8401, allocations: 41.26 MB / 0.6745 GB, free: 65.47 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006722/0.8469, allocations: 5.079 MB / 0.6795 GB, free: 60.37 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03058/0.8775, allocations: 20.92 MB / 0.6999 GB, free: 38.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.8776, allocations: 67.77 kB / 0.7 GB, free: 38.72 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003375/0.881, allocations: 0.9813 MB / 0.7009 GB, free: 37.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=324): time 8.376e-06/0.881, allocations: 0 / 0.7009 GB, free: 37.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=376): time 0.08688/0.9679, allocations: 24.48 MB / 0.7248 GB, free: 13.55 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.968, allocations: 86.36 kB / 0.7249 GB, free: 13.45 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003108/0.9711, allocations: 2.96 MB / 0.7278 GB, free: 10.51 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007849/0.9719, allocations: 89.7 kB / 0.7279 GB, free: 10.42 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000924/0.9728, allocations: 2.226 MB / 0.7301 GB, free: 8.453 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001329/0.9741, allocations: 1.363 MB / 0.7314 GB, free: 7.207 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.9754, allocations: 0.9808 MB / 0.7324 GB, free: 6.215 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.202e-05/0.9755, allocations: 311.7 kB / 0.7327 GB, free: 5.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003764/0.9793, allocations: 2.952 MB / 0.7355 GB, free: 2.949 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004756/0.984, allocations: 4.484 MB / 0.7399 GB, free: 13.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/0.9949, allocations: 7.804 MB / 0.7475 GB, free: 5.426 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.218e-05/0.9949, allocations: 14.66 kB / 0.7476 GB, free: 5.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.06033/1.055, allocations: 13.84 MB / 0.7611 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/1.055, allocations: 28 kB / 0.7611 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.024e-05/1.055, allocations: 44 kB / 0.7612 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009409/1.065, allocations: 3.474 MB / 0.7645 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006299/1.071, allocations: 1.268 MB / 0.7658 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03565/1.107, allocations: 18.5 MB / 0.7838 GB, free: 124 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00478/1.112, allocations: 255.7 kB / 0.7841 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/1.113, allocations: 283.8 kB / 0.7844 GB, free: 15.59 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 218 * 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 (599): * Single equations (assignments): 596 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(9,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.003947/1.117, allocations: 1.447 MB / 0.7858 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.118, allocations: 357.7 kB / 0.7861 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0403/1.159, allocations: 9.669 MB / 0.7956 GB, free: 4.191 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/1.159, allocations: 42.75 kB / 0.7956 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/1.159, allocations: 4 kB / 0.7956 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000107/1.159, allocations: 19.92 kB / 0.7956 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04944/1.208, allocations: 15.44 MB / 0.8107 GB, free: 4.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.315e-05/1.208, allocations: 0 / 0.8107 GB, free: 4.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005084/1.214, allocations: 0.854 MB / 0.8115 GB, free: 3.809 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006388/1.22, allocations: 2.124 MB / 0.8136 GB, free: 1.703 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007941/1.221, allocations: 135.9 kB / 0.8137 GB, free: 1.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2402/1.461, allocations: 12.67 MB / 0.8261 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/1.461, allocations: 6.531 kB / 0.8261 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04213/1.503, allocations: 12.99 MB / 0.8388 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00269/1.506, allocations: 0.9528 MB / 0.8397 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007215/1.507, allocations: 91.67 kB / 0.8398 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002477/1.509, allocations: 170.3 kB / 0.84 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009753/1.51, allocations: 453.7 kB / 0.8404 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003012/1.51, allocations: 147.7 kB / 0.8406 GB, free: 172 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002467/1.513, allocations: 1.986 MB / 0.8425 GB, free: 171.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/1.513, allocations: 0 / 0.8425 GB, free: 171.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006889/1.52, allocations: 2.069 MB / 0.8445 GB, free: 171.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 19 (solution.temperature,OxyRHm[1].logn,OxyRHm[2].logn,OxyRHm[3].logn,OxyRHm[4].logn,DeoxyRHm[1].logn,DeoxyRHm[2].logn,DeoxyRHm[3].logn,DeoxyRHm[4].logn,OxyTHm[1].logn,OxyTHm[2].logn,OxyTHm[3].logn,OxyTHm[4].logn,DeoxyTHm[1].logn,DeoxyTHm[2].logn,DeoxyTHm[3].logn,DeoxyTHm[4].logn,oxygen_unbound.logn,H2O.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 (408): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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%), (9,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04091/1.561, allocations: 14.76 MB / 0.8589 GB, free: 163.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01375/1.575, allocations: 7.437 MB / 0.8662 GB, free: 158.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.575, allocations: 0 / 0.8662 GB, free: 158.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00901/1.584, allocations: 4.086 MB / 0.8702 GB, free: 154 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004346/1.588, allocations: 0.7871 MB / 0.8709 GB, free: 153.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1482/1.736, allocations: 54.8 MB / 0.9245 GB, free: 97.35 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002405/1.739, allocations: 3.305 MB / 0.9277 GB, free: 94.07 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003777/1.742, allocations: 1.578 MB / 0.9292 GB, free: 92.62 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/1.745, allocations: 2.052 MB / 0.9312 GB, free: 90.57 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/1.745, allocations: 0 / 0.9312 GB, free: 90.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4309/2.176, allocations: 127.3 MB / 1.056 GB, free: 162 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.97/36.14, allocations: 9.422 kB / 1.056 GB, free: 162 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC_res.csv --start-time 0 --stop-time 15000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 6 Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1)