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.001255/0.001255, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001438/0.001438, allocations: 218.8 kB / 22.25 MB, free: 5.121 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.358/1.358, allocations: 230.6 MB / 256 MB, free: 7.992 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.1288/0.1288, allocations: 23.86 MB / 336.3 MB, free: 11.22 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.001902/0.001902, allocations: 67.89 kB / 471.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2997, allocations: 59.85 MB / 0.5186 GB, free: 9.645 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.03805/0.3377, allocations: 30.5 MB / 0.5484 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03243/0.3701, allocations: 26.28 MB / 0.574 GB, free: 1.348 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.3724, allocations: 31.75 kB / 0.5741 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.3743, allocations: 0.6048 MB / 0.5747 GB, free: 0.707 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006588/0.3809, allocations: 2.184 MB / 0.5768 GB, free: 14.51 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009646/0.3905, allocations: 3.577 MB / 0.5803 GB, free: 10.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008391/0.3989, allocations: 7.41 MB / 0.5875 GB, free: 3.469 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005427/0.4043, allocations: 4.335 MB / 0.5918 GB, free: 15.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007297/0.4116, allocations: 4.963 MB / 0.5966 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008047/0.4197, allocations: 4.76 MB / 0.6013 GB, free: 5.312 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001962/0.4217, allocations: 0.6758 MB / 0.6019 GB, free: 4.637 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01027/0.4319, allocations: 3.363 MB / 0.6052 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002804/0.4347, allocations: 1.816 MB / 0.607 GB, free: 15.45 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005835/0.4406, allocations: 3.354 MB / 0.6102 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0193/0.4599, allocations: 11.61 MB / 0.6216 GB, free: 440 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4599, allocations: 3.938 kB / 0.6216 GB, free: 436 kB / 462.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4599, allocations: 4 kB / 0.6216 GB, free: 432 kB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002744/0.4601, allocations: 0 / 0.6216 GB, free: 432 kB / 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.02084/0.481, allocations: 7.245 MB / 0.6287 GB, free: 9.105 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.481, allocations: 8.031 kB / 0.6287 GB, free: 9.098 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001912/0.483, allocations: 0.6617 MB / 0.6293 GB, free: 8.426 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006222/0.4892, allocations: 1.241 MB / 0.6305 GB, free: 7.18 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008211/0.4974, allocations: 3.313 MB / 0.6338 GB, free: 3.809 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000867/0.4983, allocations: 1.007 MB / 0.6348 GB, free: 2.652 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001837/0.5001, allocations: 0.4924 MB / 0.6352 GB, free: 2.16 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01896/0.519, allocations: 9.47 MB / 0.6445 GB, free: 8.578 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.512e-05/0.5191, allocations: 0 / 0.6445 GB, free: 8.578 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000777/0.5199, allocations: 192 kB / 0.6447 GB, free: 8.391 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.901e-05/0.52, allocations: 124 kB / 0.6448 GB, free: 8.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/0.5427, allocations: 12.75 MB / 0.6572 GB, free: 11.5 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.05997/0.6027, allocations: 30.78 MB / 0.6873 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05421/0.6569, allocations: 26.86 MB / 0.7135 GB, free: 2.031 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008226/0.6651, allocations: 4.721 MB / 0.7181 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2609/0.926, allocations: 17.75 MB / 0.7355 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.926, allocations: 66.3 kB / 0.7355 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004649/0.9307, allocations: 1.272 MB / 0.7368 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 1.476e-05/0.9307, allocations: 0 / 0.7368 GB, free: 168.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.08829/1.019, allocations: 24.18 MB / 0.7604 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/1.019, allocations: 94.02 kB / 0.7605 GB, free: 162 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/1.022, allocations: 2.98 MB / 0.7634 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009655/1.023, allocations: 89.55 kB / 0.7635 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009625/1.024, allocations: 2.224 MB / 0.7656 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001326/1.026, allocations: 1.359 MB / 0.767 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/1.027, allocations: 0.9815 MB / 0.7679 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.215e-05/1.027, allocations: 303.8 kB / 0.7682 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003853/1.031, allocations: 2.962 MB / 0.7711 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004664/1.035, allocations: 4.484 MB / 0.7755 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008931/1.044, allocations: 7.817 MB / 0.7831 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-05/1.044, allocations: 15.09 kB / 0.7831 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05175/1.096, allocations: 13.82 MB / 0.7966 GB, free: 134 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.577e-05/1.096, allocations: 31.94 kB / 0.7967 GB, free: 134 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.557e-05/1.096, allocations: 46.66 kB / 0.7967 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007652/1.104, allocations: 3.467 MB / 0.8001 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/1.109, allocations: 1.273 MB / 0.8013 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02735/1.136, allocations: 18.15 MB / 0.8191 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004279/1.14, allocations: 255.8 kB / 0.8193 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006607/1.141, allocations: 275.8 kB / 0.8196 GB, free: 110.4 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.002273/1.143, allocations: 1.45 MB / 0.821 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007924/1.144, allocations: 368.2 kB / 0.8213 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03138/1.176, allocations: 9.637 MB / 0.8308 GB, free: 99.03 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.95e-05/1.176, allocations: 36 kB / 0.8308 GB, free: 99 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/1.176, allocations: 10.69 kB / 0.8308 GB, free: 98.99 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001081/1.176, allocations: 23.86 kB / 0.8308 GB, free: 98.96 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04006/1.216, allocations: 15.49 MB / 0.846 GB, free: 83.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.554e-05/1.216, allocations: 4 kB / 0.846 GB, free: 83.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004249/1.22, allocations: 0.849 MB / 0.8468 GB, free: 82.65 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005532/1.226, allocations: 2.122 MB / 0.8489 GB, free: 80.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007941/1.226, allocations: 135.9 kB / 0.849 GB, free: 80.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01926/1.246, allocations: 12.33 MB / 0.861 GB, free: 67.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.246, allocations: 7.938 kB / 0.861 GB, free: 67.79 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03553/1.281, allocations: 12.96 MB / 0.8737 GB, free: 54.77 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002916/1.284, allocations: 0.924 MB / 0.8746 GB, free: 53.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008152/1.285, allocations: 95.91 kB / 0.8747 GB, free: 53.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002408/1.287, allocations: 168.3 kB / 0.8748 GB, free: 53.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008776/1.288, allocations: 470.2 kB / 0.8753 GB, free: 53.14 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000285/1.288, allocations: 147.9 kB / 0.8754 GB, free: 53 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002138/1.291, allocations: 1.996 MB / 0.8774 GB, free: 51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.291, allocations: 2.594 kB / 0.8774 GB, free: 51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005972/1.297, allocations: 2.066 MB / 0.8794 GB, free: 48.95 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.03706/1.334, allocations: 14.75 MB / 0.8938 GB, free: 34.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01291/1.347, allocations: 7.072 MB / 0.9007 GB, free: 27.23 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.347, allocations: 0 / 0.9007 GB, free: 27.23 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007123/1.354, allocations: 3.772 MB / 0.9044 GB, free: 23.42 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004058/1.358, allocations: 0.7674 MB / 0.9051 GB, free: 22.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3598/1.718, allocations: 54.81 MB / 0.9587 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003456/1.721, allocations: 3.306 MB / 0.9619 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004481/1.725, allocations: 1.582 MB / 0.9634 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003379/1.729, allocations: 2.048 MB / 0.9654 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.803e-06/1.729, allocations: 0 / 0.9654 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1748/1.904, allocations: 133.2 MB / 1.096 GB, free: 86.01 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.6/35.51, allocations: 11.98 kB / 1.096 GB, free: 86 MB / 0.5919 GB " [Timeout remaining time 624] (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: 40.2833306859975] Failed to read output from testmodel.py, exit status != 0: 35.69240367600287 35.70878983 35.245475866 Calling exit ...