Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 222.7 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.356/1.356, allocations: 230.6 MB / 256 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1299/0.1299, allocations: 23.89 MB / 336.3 MB, free: 11.01 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 75.89 kB / 471.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2976, allocations: 59.85 MB / 0.5186 GB, free: 9.602 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC): time 0.07119/0.3688, allocations: 29.37 MB / 0.5472 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03166/0.4004, allocations: 23.05 MB / 0.5697 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002465/0.4029, allocations: 31.75 kB / 0.5698 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.4046, allocations: 0.5504 MB / 0.5703 GB, free: 4.953 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00673/0.4113, allocations: 2.161 MB / 0.5724 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009699/0.421, allocations: 3.585 MB / 0.5759 GB, free: 15.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00841/0.4294, allocations: 7.398 MB / 0.5831 GB, free: 7.742 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005742/0.4352, allocations: 4.339 MB / 0.5874 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007531/0.4427, allocations: 4.959 MB / 0.5922 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008036/0.4507, allocations: 4.772 MB / 0.5969 GB, free: 9.574 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002374/0.4531, allocations: 0.6719 MB / 0.5975 GB, free: 8.902 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009426/0.4625, allocations: 3.253 MB / 0.6007 GB, free: 5.645 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002748/0.4653, allocations: 1.808 MB / 0.6025 GB, free: 3.832 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005135/0.4704, allocations: 2.903 MB / 0.6053 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02009/0.4905, allocations: 11.63 MB / 0.6167 GB, free: 5.242 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4905, allocations: 0 / 0.6167 GB, free: 5.242 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.088e-06/0.4905, allocations: 4 kB / 0.6167 GB, free: 5.238 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002818/0.4908, allocations: 0 / 0.6167 GB, free: 5.238 MB / 462.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.0191/0.5099, allocations: 7.233 MB / 0.6237 GB, free: 13.93 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.51, allocations: 8.031 kB / 0.6238 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001401/0.5114, allocations: 0.6579 MB / 0.6244 GB, free: 13.26 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005789/0.5171, allocations: 1.241 MB / 0.6256 GB, free: 12.01 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008385/0.5255, allocations: 3.317 MB / 0.6288 GB, free: 8.637 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008541/0.5264, allocations: 1.007 MB / 0.6298 GB, free: 7.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001712/0.5281, allocations: 0.4963 MB / 0.6303 GB, free: 6.984 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.5471, allocations: 9.469 MB / 0.6396 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001005/0.5472, allocations: 4 kB / 0.6396 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009014/0.5481, allocations: 192 kB / 0.6397 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.5482, allocations: 120 kB / 0.6399 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0236/0.5718, allocations: 12.67 MB / 0.6522 GB, free: 420 kB / 494.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.06098/0.6327, allocations: 27.33 MB / 0.6789 GB, free: 4.82 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05626/0.689, allocations: 26.12 MB / 0.7044 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008406/0.6974, allocations: 4.72 MB / 0.709 GB, free: 6.863 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03697/0.7344, allocations: 16.92 MB / 0.7256 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.171e-05/0.7344, allocations: 69.11 kB / 0.7256 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004524/0.739, allocations: 1.274 MB / 0.7269 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 8.226e-06/0.739, allocations: 0 / 0.7269 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.3059/1.045, allocations: 24.16 MB / 0.7505 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/1.045, allocations: 94.83 kB / 0.7506 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003728/1.049, allocations: 3.055 MB / 0.7535 GB, free: 167.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009044/1.05, allocations: 90.94 kB / 0.7536 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001252/1.051, allocations: 2.224 MB / 0.7558 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001498/1.052, allocations: 1.36 MB / 0.7571 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001471/1.054, allocations: 0.9839 MB / 0.7581 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.159e-05/1.054, allocations: 302.5 kB / 0.7584 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004197/1.058, allocations: 2.966 MB / 0.7613 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004728/1.063, allocations: 4.487 MB / 0.7657 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009348/1.072, allocations: 7.811 MB / 0.7733 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.137e-05/1.072, allocations: 13.38 kB / 0.7733 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05242/1.125, allocations: 13.83 MB / 0.7868 GB, free: 144 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.239e-05/1.125, allocations: 26.69 kB / 0.7868 GB, free: 144 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/1.125, allocations: 48 kB / 0.7869 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008111/1.133, allocations: 3.477 MB / 0.7903 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005041/1.138, allocations: 1.265 MB / 0.7915 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02788/1.166, allocations: 17.95 MB / 0.809 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004559/1.17, allocations: 258.4 kB / 0.8093 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/1.172, allocations: 284.4 kB / 0.8095 GB, free: 120.6 MB / 0.5606 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.003536/1.175, allocations: 1.45 MB / 0.811 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00146/1.177, allocations: 368.3 kB / 0.8113 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03416/1.211, allocations: 9.626 MB / 0.8207 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.832e-05/1.211, allocations: 43.98 kB / 0.8208 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-05/1.211, allocations: 7.938 kB / 0.8208 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001143/1.211, allocations: 19.92 kB / 0.8208 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04346/1.254, allocations: 14.9 MB / 0.8353 GB, free: 94.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/1.254, allocations: 4 kB / 0.8353 GB, free: 94.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004073/1.259, allocations: 0.8516 MB / 0.8362 GB, free: 93.47 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005194/1.264, allocations: 2.13 MB / 0.8382 GB, free: 91.38 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008275/1.265, allocations: 143.8 kB / 0.8384 GB, free: 91.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/1.284, allocations: 12.16 MB / 0.8503 GB, free: 78.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.284, allocations: 8.719 kB / 0.8503 GB, free: 78.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03618/1.32, allocations: 12.95 MB / 0.8629 GB, free: 65.72 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002857/1.323, allocations: 0.9313 MB / 0.8638 GB, free: 64.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.324, allocations: 94.59 kB / 0.8639 GB, free: 64.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002684/1.327, allocations: 159.8 kB / 0.8641 GB, free: 64.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001059/1.328, allocations: 470.2 kB / 0.8645 GB, free: 64.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004256/1.328, allocations: 147.9 kB / 0.8647 GB, free: 63.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002288/1.33, allocations: 2 MB / 0.8666 GB, free: 61.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.33, allocations: 2.688 kB / 0.8666 GB, free: 61.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005592/1.336, allocations: 2.064 MB / 0.8686 GB, free: 59.97 MB / 0.5606 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.0362/1.372, allocations: 14.74 MB / 0.883 GB, free: 45.36 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01158/1.384, allocations: 7.076 MB / 0.8899 GB, free: 38.26 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.384, allocations: 3.938 kB / 0.8899 GB, free: 38.26 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006265/1.39, allocations: 3.774 MB / 0.8936 GB, free: 34.45 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003545/1.394, allocations: 0.7718 MB / 0.8944 GB, free: 33.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1398/1.533, allocations: 54.82 MB / 0.9479 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003281/1.537, allocations: 2.781 MB / 0.9506 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004391/1.541, allocations: 1.577 MB / 0.9522 GB, free: 4.793 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003311/1.544, allocations: 2.048 MB / 0.9542 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of SimCode: time 1.032e-06/1.544, allocations: 0 / 0.9542 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3971/1.941, allocations: 135.7 MB / 1.087 GB, free: 94.85 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.77/20.72, allocations: 14.5 kB / 1.087 GB, free: 94.84 MB / 0.5919 GB " [Timeout remaining time 639] (rm -f Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.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_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.38344144698931] Failed to read output from testmodel.py, exit status != 0: 20.897607032005908 20.906968595 20.414090481 Calling exit ...