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.0008523/0.0008523, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.0007953/0.0007953, allocations: 165.9 kB / 22.45 MB, free: 2.102 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.8511/0.8511, allocations: 177.1 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.08103/0.08103, allocations: 17.38 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.343e-06/1.343e-06, allocations: 0 / 411.5 MB, free: 416 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.898e-05/2.032e-05, allocations: 2.281 kB / 411.5 MB, free: 412 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.02718/0.0272, allocations: 29.69 MB / 441.2 MB, free: 2.77 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1635/0.1907, allocations: 23.02 MB / 464.2 MB, free: 50.48 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.192, allocations: 35.62 kB / 464.2 MB, free: 50.46 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.1931, allocations: 0.5505 MB / 464.8 MB, free: 50.16 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004135/0.1973, allocations: 2.252 MB / 467 MB, free: 48.78 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006408/0.2037, allocations: 3.677 MB / 470.7 MB, free: 46.63 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004491/0.2082, allocations: 7.638 MB / 478.3 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003835/0.212, allocations: 4.338 MB / 482.7 MB, free: 41.08 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007958/0.22, allocations: 6.338 MB / 489 MB, free: 38.96 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007234/0.2272, allocations: 4.598 MB / 493.6 MB, free: 37.56 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003197/0.2304, allocations: 0.6745 MB / 494.3 MB, free: 37.56 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01106/0.2414, allocations: 3.213 MB / 497.5 MB, free: 36.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004296/0.2457, allocations: 1.831 MB / 499.3 MB, free: 35.88 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007504/0.2532, allocations: 2.555 MB / 0.4901 GB, free: 34.81 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01945/0.2727, allocations: 12.3 MB / 0.5021 GB, free: 28.65 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2727, allocations: 4 kB / 0.5021 GB, free: 28.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2727, allocations: 6.672 kB / 0.5021 GB, free: 28.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003024/0.273, allocations: 0 / 0.5021 GB, free: 28.64 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.01671/0.2897, allocations: 7.192 MB / 0.5092 GB, free: 21.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.2898, allocations: 12.03 kB / 0.5092 GB, free: 21.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002365/0.2921, allocations: 0.654 MB / 0.5098 GB, free: 20.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004843/0.297, allocations: 1.239 MB / 0.511 GB, free: 19.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005865/0.3028, allocations: 3.325 MB / 0.5143 GB, free: 16.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004278/0.3033, allocations: 0.9977 MB / 0.5152 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002109/0.3054, allocations: 0.4963 MB / 0.5157 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01577/0.3211, allocations: 9.458 MB / 0.525 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/0.3212, allocations: 3.281 kB / 0.525 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001486/0.3227, allocations: 199.9 kB / 0.5252 GB, free: 4.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.084e-05/0.3228, allocations: 116 kB / 0.5253 GB, free: 4.637 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01995/0.3427, allocations: 12.66 MB / 0.5376 GB, free: 7.949 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.05104/0.3938, allocations: 27.35 MB / 0.5643 GB, free: 12.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03827/0.432, allocations: 26.12 MB / 0.5899 GB, free: 3.262 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006935/0.439, allocations: 4.72 MB / 0.5945 GB, free: 14.52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02928/0.4683, allocations: 16.91 MB / 0.611 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/0.4683, allocations: 65.86 kB / 0.611 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002995/0.4713, allocations: 1.287 MB / 0.6123 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=324): time 1.401e-05/0.4713, allocations: 0 / 0.6123 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=376): time 0.2197/0.691, allocations: 24.17 MB / 0.6359 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.6911, allocations: 92.45 kB / 0.636 GB, free: 142 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.6939, allocations: 3.057 MB / 0.639 GB, free: 141 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000832/0.6947, allocations: 92.77 kB / 0.6391 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008129/0.6955, allocations: 2.212 MB / 0.6412 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001202/0.6967, allocations: 1.342 MB / 0.6425 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/0.6979, allocations: 0.9757 MB / 0.6435 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 2.678e-05/0.698, allocations: 308.2 kB / 0.6438 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002962/0.7009, allocations: 2.959 MB / 0.6467 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003825/0.7048, allocations: 4.492 MB / 0.6511 GB, free: 134 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007977/0.7127, allocations: 7.806 MB / 0.6587 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-05/0.7128, allocations: 22.03 kB / 0.6587 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.03388/0.7467, allocations: 13.83 MB / 0.6722 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.701e-05/0.7467, allocations: 24.44 kB / 0.6722 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.361e-05/0.7468, allocations: 48.66 kB / 0.6723 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005352/0.7522, allocations: 3.464 MB / 0.6757 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/0.7558, allocations: 1.272 MB / 0.6769 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/0.7744, allocations: 17.95 MB / 0.6944 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/0.7777, allocations: 247.8 kB / 0.6947 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000826/0.7785, allocations: 279.8 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.00292/0.7814, allocations: 1.455 MB / 0.6964 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008662/0.7823, allocations: 365.5 kB / 0.6967 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01964/0.8019, allocations: 9.629 MB / 0.7061 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-05/0.8019, allocations: 43.5 kB / 0.7061 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.802, allocations: 6.656 kB / 0.7062 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-05/0.8021, allocations: 19.92 kB / 0.7062 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02753/0.8296, allocations: 14.91 MB / 0.7207 GB, free: 86.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.974e-05/0.8296, allocations: 4 kB / 0.7207 GB, free: 86.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002598/0.8322, allocations: 0.849 MB / 0.7216 GB, free: 85.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003141/0.8354, allocations: 2.127 MB / 0.7236 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007356/0.8361, allocations: 139.9 kB / 0.7238 GB, free: 83.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01261/0.8487, allocations: 12.17 MB / 0.7357 GB, free: 71.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.8487, allocations: 7.938 kB / 0.7357 GB, free: 71.21 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/0.8721, allocations: 12.95 MB / 0.7483 GB, free: 58.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00258/0.8747, allocations: 0.9286 MB / 0.7492 GB, free: 57.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008435/0.8756, allocations: 91.97 kB / 0.7493 GB, free: 57.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00202/0.8776, allocations: 163.8 kB / 0.7495 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000811/0.8784, allocations: 476.5 kB / 0.7499 GB, free: 56.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000264/0.8787, allocations: 147.9 kB / 0.7501 GB, free: 56.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00204/0.8807, allocations: 1.999 MB / 0.752 GB, free: 54.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8807, allocations: 0 / 0.752 GB, free: 54.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006494/0.8872, allocations: 2.063 MB / 0.754 GB, free: 52.49 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.02529/0.9125, allocations: 14.79 MB / 0.7685 GB, free: 37.76 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0105/0.923, allocations: 7.071 MB / 0.7754 GB, free: 30.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.923, allocations: 4 kB / 0.7754 GB, free: 30.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005116/0.9281, allocations: 3.773 MB / 0.7791 GB, free: 26.85 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/0.9311, allocations: 0.7692 MB / 0.7798 GB, free: 26.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2479/1.179, 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.00241/1.181, allocations: 2.79 MB / 0.836 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002973/1.184, allocations: 1.582 MB / 0.8375 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002433/1.187, allocations: 2.047 MB / 0.8395 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/1.187, allocations: 0 / 0.8395 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1312/1.318, allocations: 133.9 MB / 0.9703 GB, free: 41.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.64, allocations: 3.938 kB / 0.9703 GB, free: 41.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC_fmu --startTime=0 --stopTime=15000 --stepSize=6 --timeout=50 --tolerance=1e-06 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.478317831642926] Failed to read output from testmodel.py, exit status != 0: 13.791814772412181 13.804470134 13.528884742 Calling exit ...