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.001969/0.001969, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002766/0.002766, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.785 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.1423/0.1423, allocations: 23.89 MB / 336.3 MB, free: 11.05 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.002326/0.002326, allocations: 78.55 kB / 471.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3229, allocations: 59.85 MB / 0.5186 GB, free: 9.543 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.07654/0.3994, allocations: 29.44 MB / 0.5473 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03474/0.4342, allocations: 23.05 MB / 0.5698 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001998/0.4362, allocations: 35.69 kB / 0.5698 GB, free: 5.387 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.4379, allocations: 0.5504 MB / 0.5704 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006571/0.4445, allocations: 2.161 MB / 0.5725 GB, free: 2.656 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.4551, allocations: 3.581 MB / 0.576 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.4652, allocations: 7.398 MB / 0.5832 GB, free: 7.625 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006614/0.4718, allocations: 4.315 MB / 0.5874 GB, free: 3.234 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008025/0.4798, allocations: 4.967 MB / 0.5923 GB, free: 14.26 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009553/0.4894, allocations: 4.959 MB / 0.5971 GB, free: 9.285 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00263/0.492, allocations: 0.6719 MB / 0.5978 GB, free: 8.613 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009142/0.5012, allocations: 3.187 MB / 0.6009 GB, free: 5.422 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002782/0.5039, allocations: 1.812 MB / 0.6027 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00541/0.5093, allocations: 2.9 MB / 0.6055 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02137/0.5307, allocations: 11.63 MB / 0.6168 GB, free: 5.02 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.5307, allocations: 0 / 0.6168 GB, free: 5.02 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5307, allocations: 0 / 0.6168 GB, free: 5.02 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002258/0.531, allocations: 4 kB / 0.6168 GB, free: 5.016 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.01963/0.5506, allocations: 7.233 MB / 0.6239 GB, free: 13.71 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.5507, allocations: 8.031 kB / 0.6239 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002335/0.553, allocations: 0.6618 MB / 0.6246 GB, free: 13.03 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007738/0.5607, allocations: 1.241 MB / 0.6258 GB, free: 11.79 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008931/0.5697, allocations: 3.321 MB / 0.629 GB, free: 8.406 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001005/0.5707, allocations: 1.003 MB / 0.63 GB, free: 7.254 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002967/0.5736, allocations: 0.5001 MB / 0.6305 GB, free: 6.754 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02287/0.5965, allocations: 9.458 MB / 0.6397 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/0.5966, allocations: 7.938 kB / 0.6397 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001018/0.5976, allocations: 199.9 kB / 0.6399 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.754e-05/0.5977, allocations: 116 kB / 0.64 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02354/0.6213, allocations: 12.66 MB / 0.6524 GB, free: 188 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.06584/0.6871, allocations: 27.33 MB / 0.6791 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05641/0.7435, allocations: 26.12 MB / 0.7046 GB, free: 11.39 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008324/0.7518, allocations: 4.72 MB / 0.7092 GB, free: 6.641 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03552/0.7874, allocations: 16.92 MB / 0.7257 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.058e-05/0.7874, allocations: 65.11 kB / 0.7258 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004779/0.7922, allocations: 1.281 MB / 0.727 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 1.159e-05/0.7922, allocations: 0 / 0.727 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.2997/1.092, allocations: 24.16 MB / 0.7506 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/1.092, allocations: 91.78 kB / 0.7507 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003831/1.096, allocations: 3.058 MB / 0.7537 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009617/1.097, allocations: 90.2 kB / 0.7538 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001251/1.098, allocations: 2.223 MB / 0.756 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001631/1.1, allocations: 1.358 MB / 0.7573 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/1.101, allocations: 0.9838 MB / 0.7583 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.49e-05/1.101, allocations: 305.1 kB / 0.7585 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004363/1.105, allocations: 2.961 MB / 0.7614 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005004/1.11, allocations: 4.484 MB / 0.7658 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/1.121, allocations: 7.82 MB / 0.7735 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.707e-05/1.121, allocations: 14.88 kB / 0.7735 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05501/1.176, allocations: 13.83 MB / 0.787 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.947e-05/1.176, allocations: 25.88 kB / 0.787 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.088e-05/1.176, allocations: 48 kB / 0.787 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008038/1.184, allocations: 3.469 MB / 0.7904 GB, free: 140.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/1.19, allocations: 1.275 MB / 0.7917 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02816/1.218, allocations: 17.95 MB / 0.8092 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004596/1.222, allocations: 247.8 kB / 0.8094 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.223, allocations: 283.8 kB / 0.8097 GB, free: 120.3 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.003389/1.227, allocations: 1.448 MB / 0.8111 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/1.228, allocations: 369.6 kB / 0.8115 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03582/1.264, allocations: 9.636 MB / 0.8209 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.318e-05/1.264, allocations: 37.09 kB / 0.8209 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.148e-05/1.264, allocations: 14.56 kB / 0.8209 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000132/1.264, allocations: 19.92 kB / 0.821 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0434/1.307, allocations: 14.9 MB / 0.8355 GB, free: 94.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.132e-05/1.307, allocations: 7.938 kB / 0.8355 GB, free: 94.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004411/1.312, allocations: 0.8477 MB / 0.8363 GB, free: 93.22 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005764/1.318, allocations: 2.13 MB / 0.8384 GB, free: 91.12 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001312/1.319, allocations: 135.9 kB / 0.8386 GB, free: 90.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02039/1.339, allocations: 12.17 MB / 0.8504 GB, free: 78.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/1.339, allocations: 4 kB / 0.8504 GB, free: 78.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03792/1.377, allocations: 12.95 MB / 0.8631 GB, free: 65.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002988/1.38, allocations: 0.9271 MB / 0.864 GB, free: 64.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009061/1.381, allocations: 98.59 kB / 0.8641 GB, free: 64.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/1.384, allocations: 159.8 kB / 0.8642 GB, free: 64.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009687/1.385, allocations: 470.2 kB / 0.8647 GB, free: 63.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002934/1.385, allocations: 147.9 kB / 0.8648 GB, free: 63.69 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002156/1.387, allocations: 1.996 MB / 0.8668 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.387, allocations: 4 kB / 0.8668 GB, free: 61.69 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0058/1.393, allocations: 2.064 MB / 0.8688 GB, free: 59.72 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.03994/1.433, allocations: 14.75 MB / 0.8832 GB, free: 45.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01189/1.445, allocations: 7.07 MB / 0.8901 GB, free: 38.01 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.445, allocations: 0 / 0.8901 GB, free: 38.01 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.006576/1.451, allocations: 3.777 MB / 0.8938 GB, free: 34.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003661/1.455, allocations: 0.7772 MB / 0.8946 GB, free: 33.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1494/1.604, allocations: 54.82 MB / 0.9481 GB, free: 8.938 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003109/1.607, allocations: 2.781 MB / 0.9508 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004431/1.612, allocations: 1.578 MB / 0.9523 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00339/1.615, allocations: 2.052 MB / 0.9544 GB, free: 2.504 MB / 0.5919 GB Notification: Performance of SimCode: time 1.052e-06/1.615, allocations: 0 / 0.9544 GB, free: 2.504 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4119/2.027, allocations: 133.9 MB / 1.085 GB, free: 96.51 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.07/22.1, allocations: 7.5 kB / 1.085 GB, free: 96.5 MB / 0.5919 GB " [Timeout remaining time 638] (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: 25.05630107782781] Failed to read output from testmodel.py, exit status != 0: 22.29613236291334 22.317408427 21.782257922 Calling exit ...