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.0009647/0.0009647, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007824/0.0007824, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8546/0.8546, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.08303/0.08303, allocations: 17.37 MB / 276.6 MB, free: 11.85 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 411.5 MB, free: 400 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.166e-05/1.336e-05, allocations: 2.281 kB / 411.5 MB, free: 396 kB / 378.7 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.02537/0.02538, allocations: 29.69 MB / 441.2 MB, free: 2.77 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1582/0.1835, allocations: 23.04 MB / 464.2 MB, free: 50.49 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006841/0.1842, allocations: 36.28 kB / 464.2 MB, free: 50.47 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007483/0.185, allocations: 0.5515 MB / 464.8 MB, free: 50.18 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002316/0.1873, allocations: 2.242 MB / 467 MB, free: 48.8 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00377/0.1911, allocations: 3.681 MB / 470.7 MB, free: 46.64 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002764/0.1938, allocations: 7.643 MB / 478.4 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002295/0.1961, allocations: 4.335 MB / 482.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003581/0.1997, allocations: 6.328 MB / 489 MB, free: 38.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005382/0.2051, allocations: 4.606 MB / 493.6 MB, free: 37.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001282/0.2064, allocations: 0.6761 MB / 494.3 MB, free: 37.57 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006089/0.2124, allocations: 3.213 MB / 497.5 MB, free: 36.93 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001145/0.2136, allocations: 1.835 MB / 499.3 MB, free: 35.88 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002477/0.2161, allocations: 2.548 MB / 0.4901 GB, free: 34.83 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009805/0.2259, allocations: 12.31 MB / 0.5021 GB, free: 28.63 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2259, allocations: 0 / 0.5021 GB, free: 28.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2259, allocations: 0 / 0.5021 GB, free: 28.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.262e-05/0.2259, allocations: 2.688 kB / 0.5021 GB, free: 28.63 MB / 410.7 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.00747/0.2334, allocations: 7.191 MB / 0.5092 GB, free: 21.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.2335, allocations: 8.031 kB / 0.5092 GB, free: 21.42 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005947/0.2341, allocations: 0.6633 MB / 0.5098 GB, free: 20.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00292/0.237, allocations: 1.235 MB / 0.511 GB, free: 19.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00331/0.2403, allocations: 3.325 MB / 0.5143 GB, free: 16.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003039/0.2406, allocations: 1.007 MB / 0.5153 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006212/0.2412, allocations: 0.4895 MB / 0.5157 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007966/0.2492, allocations: 9.461 MB / 0.525 GB, free: 4.926 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.461e-05/0.2492, allocations: 4.375 kB / 0.525 GB, free: 4.922 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004378/0.2497, allocations: 195.9 kB / 0.5252 GB, free: 4.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.2497, allocations: 116 kB / 0.5253 GB, free: 4.617 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/0.261, allocations: 12.66 MB / 0.5376 GB, free: 7.938 MB / 426.7 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.02948/0.2905, allocations: 27.35 MB / 0.5644 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03217/0.3227, allocations: 26.12 MB / 0.5899 GB, free: 3.242 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005317/0.328, allocations: 4.72 MB / 0.5945 GB, free: 14.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03034/0.3583, allocations: 16.91 MB / 0.611 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.3583, allocations: 65.11 kB / 0.6111 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00273/0.3611, allocations: 1.276 MB / 0.6123 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=324): time 6.643e-06/0.3611, allocations: 0 / 0.6123 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=376): time 0.203/0.5641, allocations: 24.18 MB / 0.6359 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.5642, allocations: 89.73 kB / 0.636 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.5667, allocations: 3.055 MB / 0.639 GB, free: 141 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004331/0.5671, allocations: 83.3 kB / 0.6391 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000716/0.5678, allocations: 2.215 MB / 0.6412 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007131/0.5685, allocations: 1.348 MB / 0.6425 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009135/0.5695, allocations: 0.9717 MB / 0.6435 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 3.183e-05/0.5695, allocations: 311 kB / 0.6438 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002564/0.5721, allocations: 2.962 MB / 0.6467 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002929/0.575, allocations: 4.487 MB / 0.6511 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006166/0.5811, allocations: 7.811 MB / 0.6587 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-05/0.5812, allocations: 13.56 kB / 0.6587 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.03055/0.6117, allocations: 13.83 MB / 0.6722 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.6118, allocations: 26.09 kB / 0.6722 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-05/0.6118, allocations: 52.16 kB / 0.6723 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00499/0.6168, allocations: 3.472 MB / 0.6757 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003404/0.6202, allocations: 1.266 MB / 0.6769 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01742/0.6377, allocations: 17.94 MB / 0.6944 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/0.6408, allocations: 251.8 kB / 0.6947 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/0.6411, allocations: 278.5 kB / 0.6949 GB, free: 113 MB / 0.4948 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.002356/0.6435, allocations: 1.455 MB / 0.6964 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004848/0.644, allocations: 362.4 kB / 0.6967 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/0.6614, allocations: 9.634 MB / 0.7061 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-05/0.6614, allocations: 42.66 kB / 0.7062 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.6614, allocations: 4 kB / 0.7062 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-05/0.6615, allocations: 27.61 kB / 0.7062 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02409/0.6856, allocations: 14.9 MB / 0.7207 GB, free: 86.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.178e-05/0.6856, allocations: 7.984 kB / 0.7207 GB, free: 86.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/0.6878, allocations: 0.8412 MB / 0.7216 GB, free: 85.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002845/0.6907, allocations: 2.124 MB / 0.7236 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/0.691, allocations: 146.5 kB / 0.7238 GB, free: 83.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/0.7025, allocations: 12.17 MB / 0.7357 GB, free: 71.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.7025, allocations: 10.59 kB / 0.7357 GB, free: 71.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02055/0.7231, allocations: 12.94 MB / 0.7483 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/0.7248, allocations: 0.925 MB / 0.7492 GB, free: 57.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003471/0.7251, allocations: 95.97 kB / 0.7493 GB, free: 57.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.7263, allocations: 155.8 kB / 0.7495 GB, free: 57.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007606/0.7271, allocations: 476.9 kB / 0.7499 GB, free: 56.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002099/0.7273, allocations: 143.9 kB / 0.7501 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001637/0.7289, allocations: 2 MB / 0.752 GB, free: 54.42 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.7289, allocations: 0 / 0.752 GB, free: 54.42 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004437/0.7334, allocations: 2.067 MB / 0.754 GB, free: 52.47 MB / 0.4948 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.02268/0.756, allocations: 14.79 MB / 0.7685 GB, free: 37.74 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008175/0.7642, allocations: 7.069 MB / 0.7754 GB, free: 30.64 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7642, allocations: 0 / 0.7754 GB, free: 30.64 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003872/0.7681, allocations: 3.773 MB / 0.7791 GB, free: 26.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.7705, allocations: 0.7652 MB / 0.7798 GB, free: 26.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2274/0.9979, allocations: 54.74 MB / 0.8333 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001523/0.9994, allocations: 2.784 MB / 0.836 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002672/1.002, allocations: 1.588 MB / 0.8375 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/1.004, allocations: 2.041 MB / 0.8395 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of SimCode: time 5.51e-07/1.004, allocations: 0 / 0.8395 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/1.112, allocations: 133.9 MB / 0.9703 GB, free: 41.37 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/13.43, allocations: 7.297 kB / 0.9703 GB, free: 41.37 MB / 0.5105 GB " [Timeout remaining time 646] (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: 15.31644578371197] Failed to read output from testmodel.py, exit status != 0: 13.580603457055986 13.585897384 13.358600401 Calling exit ...