Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001386/0.001386, allocations: 105.2 kB / 16.45 MB, free: 6.449 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.001565/0.001565, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.496/1.496, allocations: 230.6 MB / 252.8 MB, free: 9.109 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1562/0.1562, allocations: 23.89 MB / 332.7 MB, free: 12.33 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_master_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.002185/0.002185, allocations: 71.89 kB / 466.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3586, allocations: 59.82 MB / 0.5136 GB, free: 8.805 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.04671/0.4053, allocations: 30.46 MB / 0.5433 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05768/0.463, allocations: 26.22 MB / 0.5689 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002336/0.4653, allocations: 35.69 kB / 0.5689 GB, free: 2.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00316/0.4685, allocations: 0.6003 MB / 0.5695 GB, free: 1.762 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01134/0.4798, allocations: 2.159 MB / 0.5716 GB, free: 15.73 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.017/0.4968, allocations: 3.542 MB / 0.5751 GB, free: 12.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.5079, allocations: 7.41 MB / 0.5823 GB, free: 4.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007653/0.5156, allocations: 5.124 MB / 0.5873 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00743/0.523, allocations: 4.959 MB / 0.5922 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008478/0.5315, allocations: 4.768 MB / 0.5968 GB, free: 5.781 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002452/0.5339, allocations: 0.6719 MB / 0.5975 GB, free: 5.109 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01186/0.5458, allocations: 3.367 MB / 0.6008 GB, free: 1.738 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003486/0.5493, allocations: 1.812 MB / 0.6025 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006374/0.5557, allocations: 3.35 MB / 0.6058 GB, free: 12.55 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02413/0.5798, allocations: 11.62 MB / 0.6172 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.5798, allocations: 0 / 0.6172 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5798, allocations: 0 / 0.6172 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003588/0.5802, allocations: 3.938 kB / 0.6172 GB, free: 0.8906 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.02186/0.602, allocations: 7.316 MB / 0.6243 GB, free: 9.48 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.6021, allocations: 12.03 kB / 0.6243 GB, free: 9.469 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003321/0.6054, allocations: 0.6618 MB / 0.625 GB, free: 8.797 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008378/0.6138, allocations: 1.241 MB / 0.6262 GB, free: 7.551 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009528/0.6233, allocations: 3.276 MB / 0.6294 GB, free: 4.199 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009361/0.6242, allocations: 0.6727 MB / 0.63 GB, free: 3.457 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002818/0.6271, allocations: 0.4885 MB / 0.6305 GB, free: 2.969 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02705/0.6541, allocations: 9.462 MB / 0.6398 GB, free: 9.398 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002277/0.6543, allocations: 0 / 0.6398 GB, free: 9.398 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0026/0.6569, allocations: 192 kB / 0.6399 GB, free: 9.211 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.657, allocations: 120 kB / 0.6401 GB, free: 9.094 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03912/0.6962, allocations: 12.73 MB / 0.6525 GB, free: 12.34 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.088/0.7842, allocations: 30.62 MB / 0.6824 GB, free: 13 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07031/0.8545, allocations: 40.96 MB / 0.7224 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2363/1.091, allocations: 4.713 MB / 0.727 GB, free: 172.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04042/1.131, allocations: 21.23 MB / 0.7477 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/1.131, allocations: 63.89 kB / 0.7478 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005265/1.136, allocations: 1.278 MB / 0.749 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 1.726e-05/1.136, allocations: 1.281 kB / 0.749 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.09707/1.234, allocations: 24.41 MB / 0.7729 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/1.234, allocations: 88.73 kB / 0.773 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/1.237, allocations: 2.96 MB / 0.7758 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00086/1.238, allocations: 85.7 kB / 0.7759 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009749/1.239, allocations: 2.228 MB / 0.7781 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.24, allocations: 1.365 MB / 0.7794 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002434/1.243, allocations: 0.9807 MB / 0.7804 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.867e-05/1.243, allocations: 305.1 kB / 0.7807 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/1.247, allocations: 2.956 MB / 0.7836 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004934/1.252, allocations: 4.481 MB / 0.7879 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009409/1.261, allocations: 7.805 MB / 0.7956 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.508e-05/1.261, allocations: 12 kB / 0.7956 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05737/1.319, allocations: 13.82 MB / 0.8091 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.561e-05/1.319, allocations: 28 kB / 0.8091 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-05/1.319, allocations: 51.94 kB / 0.8092 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008416/1.327, allocations: 3.475 MB / 0.8125 GB, free: 111 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005437/1.333, allocations: 1.27 MB / 0.8138 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03051/1.363, allocations: 18.43 MB / 0.8318 GB, free: 90.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004436/1.368, allocations: 257.4 kB / 0.832 GB, free: 90.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009585/1.369, allocations: 283.8 kB / 0.8323 GB, free: 90.39 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.002797/1.372, allocations: 1.455 MB / 0.8337 GB, free: 88.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/1.373, allocations: 361.6 kB / 0.8341 GB, free: 88.57 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03772/1.41, allocations: 9.631 MB / 0.8435 GB, free: 79.02 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.076e-05/1.41, allocations: 47.92 kB / 0.8435 GB, free: 78.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.392e-05/1.41, allocations: 4 kB / 0.8435 GB, free: 78.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001227/1.411, allocations: 19.92 kB / 0.8435 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05021/1.461, allocations: 15.42 MB / 0.8586 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.348e-05/1.461, allocations: 4 kB / 0.8586 GB, free: 63.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004581/1.465, allocations: 0.849 MB / 0.8594 GB, free: 62.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005908/1.471, allocations: 2.129 MB / 0.8615 GB, free: 60.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009431/1.472, allocations: 135.9 kB / 0.8616 GB, free: 60.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/1.494, allocations: 12.64 MB / 0.874 GB, free: 47.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.494, allocations: 11.12 kB / 0.874 GB, free: 47.42 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04256/1.536, allocations: 12.95 MB / 0.8866 GB, free: 34.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/1.539, allocations: 0.9553 MB / 0.8876 GB, free: 33.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001275/1.54, allocations: 88.55 kB / 0.8877 GB, free: 33.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003222/1.543, allocations: 168.3 kB / 0.8878 GB, free: 33.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001352/1.545, allocations: 458.4 kB / 0.8883 GB, free: 32.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006054/1.545, allocations: 146.6 kB / 0.8884 GB, free: 32.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002746/1.548, allocations: 1.989 MB / 0.8903 GB, free: 30.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.548, allocations: 4 kB / 0.8903 GB, free: 30.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006611/1.555, allocations: 2.059 MB / 0.8924 GB, free: 28.54 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.04382/1.599, allocations: 14.76 MB / 0.9068 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01492/1.614, allocations: 7.061 MB / 0.9137 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.637e-05/1.614, allocations: 0 / 0.9137 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008852/1.622, allocations: 3.773 MB / 0.9174 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005435/1.628, allocations: 0.7691 MB / 0.9181 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4343/2.062, allocations: 54.75 MB / 0.9716 GB, free: 183.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/2.067, allocations: 3.311 MB / 0.9748 GB, free: 182.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00463/2.071, allocations: 1.575 MB / 0.9763 GB, free: 182.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003174/2.074, allocations: 2.05 MB / 0.9783 GB, free: 180.4 MB / 0.5919 GB Notification: Performance of SimCode: time 7.31e-07/2.074, allocations: 0 / 0.9783 GB, free: 180.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2177/2.292, allocations: 128.7 MB / 1.104 GB, free: 63.85 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.1/37.4, allocations: 12 kB / 1.104 GB, free: 63.84 MB / 0.5919 GB " [Timeout remaining time 622] (rm -f Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 42.47856770292856] Failed to read output from testmodel.py, exit status != 0: 37.56718170386739 37.582662234 36.999396115 Calling exit ...