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.001858/0.001858, allocations: 107.2 kB / 16.45 MB, free: 6.508 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.002235/0.002235, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.459/1.459, allocations: 230.6 MB / 252.8 MB, free: 9.133 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.1406/0.1406, allocations: 23.85 MB / 332.7 MB, free: 12.39 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.001994/0.001994, allocations: 67.91 kB / 466 MB, free: 10.08 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3151, allocations: 59.8 MB / 0.5135 GB, free: 8.82 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.04454/0.3596, allocations: 30.29 MB / 0.5431 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0355/0.3951, allocations: 26.22 MB / 0.5687 GB, free: 2.523 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002004/0.3971, allocations: 31.75 kB / 0.5687 GB, free: 2.492 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001997/0.3991, allocations: 0.6043 MB / 0.5693 GB, free: 2.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008064/0.4072, allocations: 2.158 MB / 0.5714 GB, free: 15.99 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.011/0.4182, allocations: 3.554 MB / 0.5749 GB, free: 12.42 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009429/0.4276, allocations: 7.402 MB / 0.5821 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006818/0.4345, allocations: 5.116 MB / 0.5871 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008085/0.4425, allocations: 4.975 MB / 0.5919 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00902/0.4516, allocations: 4.76 MB / 0.5966 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002914/0.4545, allocations: 0.6757 MB / 0.5973 GB, free: 5.363 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0127/0.4672, allocations: 3.367 MB / 0.6005 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003335/0.4705, allocations: 1.812 MB / 0.6023 GB, free: 180 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006353/0.4769, allocations: 3.354 MB / 0.6056 GB, free: 12.8 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02333/0.5002, allocations: 11.62 MB / 0.6169 GB, free: 1.148 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.5002, allocations: 0 / 0.6169 GB, free: 1.148 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5002, allocations: 0 / 0.6169 GB, free: 1.148 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003057/0.5005, allocations: 0 / 0.6169 GB, free: 1.148 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.02303/0.5235, allocations: 7.32 MB / 0.6241 GB, free: 9.738 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.5236, allocations: 8.031 kB / 0.6241 GB, free: 9.73 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00264/0.5262, allocations: 0.6579 MB / 0.6247 GB, free: 9.062 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007781/0.534, allocations: 1.241 MB / 0.6259 GB, free: 7.816 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008288/0.5423, allocations: 3.272 MB / 0.6291 GB, free: 4.469 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001118/0.5434, allocations: 0.6727 MB / 0.6298 GB, free: 3.727 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00416/0.5476, allocations: 0.4924 MB / 0.6303 GB, free: 3.234 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02631/0.5739, allocations: 9.458 MB / 0.6395 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001912/0.5741, allocations: 0 / 0.6395 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002199/0.5763, allocations: 196 kB / 0.6397 GB, free: 9.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.5764, allocations: 116 kB / 0.6398 GB, free: 9.363 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/0.6038, allocations: 12.73 MB / 0.6522 GB, free: 12.61 MB / 0.4981 GB 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.07112/0.6749, allocations: 30.63 MB / 0.6822 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06982/0.7447, allocations: 40.96 MB / 0.7221 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2197/0.9645, allocations: 4.716 MB / 0.7268 GB, free: 173 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03622/1.001, allocations: 21.22 MB / 0.7475 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/1.001, allocations: 70.66 kB / 0.7475 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005379/1.006, allocations: 1.277 MB / 0.7488 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 2.85e-05/1.006, allocations: 1.125 kB / 0.7488 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.0992/1.105, allocations: 24.4 MB / 0.7726 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/1.105, allocations: 99.12 kB / 0.7727 GB, free: 151 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003173/1.109, allocations: 2.961 MB / 0.7756 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008977/1.109, allocations: 89.3 kB / 0.7757 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000947/1.11, allocations: 2.223 MB / 0.7779 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.112, allocations: 1.363 MB / 0.7792 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/1.113, allocations: 0.9846 MB / 0.7802 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.668e-05/1.113, allocations: 301.1 kB / 0.7804 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004017/1.117, allocations: 2.952 MB / 0.7833 GB, free: 142 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004852/1.122, allocations: 4.485 MB / 0.7877 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/1.132, allocations: 7.804 MB / 0.7953 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.765e-05/1.132, allocations: 16 kB / 0.7953 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05964/1.192, allocations: 13.82 MB / 0.8088 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/1.192, allocations: 24 kB / 0.8089 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.459e-05/1.192, allocations: 53.91 kB / 0.8089 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008616/1.201, allocations: 3.484 MB / 0.8123 GB, free: 111.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005742/1.206, allocations: 1.27 MB / 0.8136 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03054/1.237, allocations: 18.43 MB / 0.8315 GB, free: 91.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004585/1.242, allocations: 251.8 kB / 0.8318 GB, free: 91.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000914/1.243, allocations: 283.8 kB / 0.8321 GB, free: 90.77 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.002453/1.245, allocations: 1.451 MB / 0.8335 GB, free: 89.31 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009721/1.246, allocations: 365.6 kB / 0.8338 GB, free: 88.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03643/1.282, allocations: 9.64 MB / 0.8432 GB, free: 79.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-05/1.282, allocations: 39.94 kB / 0.8433 GB, free: 79.36 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.212e-05/1.282, allocations: 8 kB / 0.8433 GB, free: 79.35 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001222/1.283, allocations: 22.64 kB / 0.8433 GB, free: 79.33 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04819/1.331, allocations: 15.42 MB / 0.8584 GB, free: 63.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.621e-05/1.331, allocations: 4 kB / 0.8584 GB, free: 63.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004605/1.335, allocations: 0.8451 MB / 0.8592 GB, free: 63.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005944/1.341, allocations: 2.13 MB / 0.8613 GB, free: 60.97 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008347/1.342, allocations: 135.9 kB / 0.8614 GB, free: 60.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02181/1.364, allocations: 12.64 MB / 0.8737 GB, free: 47.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.364, allocations: 11.25 kB / 0.8738 GB, free: 47.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04024/1.404, allocations: 12.96 MB / 0.8864 GB, free: 34.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002605/1.407, allocations: 0.9552 MB / 0.8873 GB, free: 33.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/1.408, allocations: 91.97 kB / 0.8874 GB, free: 33.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003267/1.411, allocations: 170.3 kB / 0.8876 GB, free: 33.56 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001267/1.412, allocations: 446.5 kB / 0.888 GB, free: 33.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000538/1.413, allocations: 151.8 kB / 0.8882 GB, free: 32.97 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003158/1.416, allocations: 1.989 MB / 0.8901 GB, free: 30.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.416, allocations: 0 / 0.8901 GB, free: 30.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007578/1.424, allocations: 2.064 MB / 0.8921 GB, free: 28.92 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.04319/1.467, allocations: 14.74 MB / 0.9065 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01451/1.481, allocations: 7.075 MB / 0.9134 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.481, allocations: 4 kB / 0.9134 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007484/1.489, allocations: 3.766 MB / 0.9171 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00356/1.492, allocations: 0.7765 MB / 0.9179 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4151/1.908, allocations: 54.75 MB / 0.9713 GB, free: 184 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003129/1.911, allocations: 3.304 MB / 0.9746 GB, free: 182.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003869/1.915, allocations: 1.573 MB / 0.9761 GB, free: 182.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002939/1.917, allocations: 2.054 MB / 0.9781 GB, free: 180.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.202e-06/1.917, allocations: 1.969 kB / 0.9781 GB, free: 180.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1709/2.088, allocations: 128.6 MB / 1.104 GB, free: 64.38 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.17/37.26, allocations: 11.86 kB / 1.104 GB, free: 64.37 MB / 0.5919 GB " [Timeout remaining time 623] (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 sys.exit(0), Time elapsed: 42.30622151499847] Failed to read output from testmodel.py, exit status != 0: 37.43254822799645 37.448646315 36.944705337 Calling exit ...