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.0013/0.0013, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001398/0.001398, allocations: 215 kB / 20.13 MB, free: 2.949 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.513/1.513, allocations: 230.6 MB / 253.5 MB, free: 15.13 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.1459/0.1459, allocations: 23.86 MB / 333.4 MB, free: 1.234 MB / 254.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="cs",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.001976/0.001976, allocations: 71.98 kB / 466.7 MB, free: 30.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09516/0.09714, allocations: 59.81 MB / 0.5142 GB, free: 13.09 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.04424/0.1414, allocations: 30.27 MB / 0.5438 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03408/0.1755, allocations: 26.22 MB / 0.5694 GB, free: 4.531 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001817/0.1773, allocations: 35.69 kB / 0.5694 GB, free: 4.496 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00191/0.1792, allocations: 0.5971 MB / 0.57 GB, free: 3.895 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006588/0.1858, allocations: 2.168 MB / 0.5721 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01004/0.1958, allocations: 3.542 MB / 0.5756 GB, free: 14.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008985/0.2048, allocations: 7.41 MB / 0.5828 GB, free: 6.707 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006963/0.2118, allocations: 5.116 MB / 0.5878 GB, free: 1.516 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2376/0.4494, allocations: 4.964 MB / 0.5926 GB, free: 22.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009276/0.4587, allocations: 4.761 MB / 0.5973 GB, free: 22.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003766/0.4624, allocations: 0.6742 MB / 0.5979 GB, free: 22.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01192/0.4743, allocations: 3.36 MB / 0.6012 GB, free: 22.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004572/0.4789, allocations: 1.81 MB / 0.603 GB, free: 22.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007196/0.4861, allocations: 3.356 MB / 0.6063 GB, free: 21.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01767/0.5038, allocations: 11.62 MB / 0.6176 GB, free: 18.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.5038, allocations: 1.375 kB / 0.6176 GB, free: 18.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5038, allocations: 0 / 0.6176 GB, free: 18.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002947/0.5041, allocations: 0 / 0.6176 GB, free: 18.89 MB / 446.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.02006/0.5242, allocations: 7.314 MB / 0.6248 GB, free: 15.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.5242, allocations: 8.656 kB / 0.6248 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001142/0.5243, allocations: 128.1 kB / 0.6249 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002068/0.5264, allocations: 0.6606 MB / 0.6255 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006961/0.5333, allocations: 1.238 MB / 0.6267 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007929/0.5413, allocations: 3.278 MB / 0.6299 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007187/0.542, allocations: 0.6806 MB / 0.6306 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003093/0.5451, allocations: 0.4915 MB / 0.6311 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01973/0.5648, allocations: 9.458 MB / 0.6403 GB, free: 2.828 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001377/0.565, allocations: 3.375 kB / 0.6403 GB, free: 2.828 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001709/0.5667, allocations: 196 kB / 0.6405 GB, free: 2.637 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.401e-05/0.5667, allocations: 116 kB / 0.6406 GB, free: 2.523 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0269/0.5936, allocations: 12.73 MB / 0.6531 GB, free: 5.789 MB / 462.1 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.07325/0.6669, allocations: 30.61 MB / 0.683 GB, free: 7.02 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07034/0.7372, allocations: 40.96 MB / 0.723 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009912/0.7471, allocations: 4.721 MB / 0.7276 GB, free: 6.809 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04537/0.7925, allocations: 21.22 MB / 0.7483 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.321e-05/0.7926, allocations: 67.77 kB / 0.7483 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005641/0.7982, allocations: 1.276 MB / 0.7496 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 1.482e-05/0.7982, allocations: 3.562 kB / 0.7496 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.1122/0.9104, allocations: 24.42 MB / 0.7734 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/0.9105, allocations: 90.36 kB / 0.7735 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005499/0.916, allocations: 2.958 MB / 0.7764 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001238/0.9172, allocations: 85.7 kB / 0.7765 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002849/0.9201, allocations: 2.22 MB / 0.7787 GB, free: 1.879 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.003243/0.9233, allocations: 1.366 MB / 0.78 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005342/0.9287, allocations: 0.9834 MB / 0.781 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002111/0.9289, allocations: 305.1 kB / 0.7813 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01113/0.94, allocations: 2.958 MB / 0.7841 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01256/0.9526, allocations: 4.486 MB / 0.7885 GB, free: 7.168 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02498/0.9776, allocations: 7.803 MB / 0.7961 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.004e-05/0.9776, allocations: 16 kB / 0.7962 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.06467/1.042, allocations: 13.81 MB / 0.8096 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.177e-05/1.042, allocations: 27.98 kB / 0.8097 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-05/1.042, allocations: 50.62 kB / 0.8097 GB, free: 1.52 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2413/1.284, allocations: 3.469 MB / 0.8131 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006415/1.29, allocations: 1.277 MB / 0.8144 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03685/1.327, allocations: 18.44 MB / 0.8324 GB, free: 212.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005489/1.332, allocations: 248.3 kB / 0.8326 GB, free: 212.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.334, allocations: 283.4 kB / 0.8329 GB, free: 212.1 MB / 0.6075 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.003501/1.337, allocations: 1.451 MB / 0.8343 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.338, allocations: 363.9 kB / 0.8346 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03813/1.377, allocations: 9.64 MB / 0.8441 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-05/1.377, allocations: 42.69 kB / 0.8441 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.436e-05/1.377, allocations: 6.562 kB / 0.8441 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/1.377, allocations: 19.92 kB / 0.8441 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04631/1.423, allocations: 15.42 MB / 0.8592 GB, free: 198.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.764e-05/1.423, allocations: 4 kB / 0.8592 GB, free: 198.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00478/1.428, allocations: 0.8516 MB / 0.86 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005973/1.434, allocations: 2.127 MB / 0.8621 GB, free: 195.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001068/1.435, allocations: 135.9 kB / 0.8622 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02118/1.456, allocations: 12.64 MB / 0.8746 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.456, allocations: 6.625 kB / 0.8746 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04001/1.496, allocations: 12.95 MB / 0.8872 GB, free: 169.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002778/1.499, allocations: 0.959 MB / 0.8882 GB, free: 168.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.5, allocations: 91.97 kB / 0.8882 GB, free: 168.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003319/1.503, allocations: 163.8 kB / 0.8884 GB, free: 168.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001302/1.505, allocations: 457 kB / 0.8888 GB, free: 167.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004399/1.505, allocations: 143.9 kB / 0.889 GB, free: 167.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002597/1.508, allocations: 1.989 MB / 0.8909 GB, free: 165.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.508, allocations: 3 kB / 0.8909 GB, free: 165.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008617/1.516, allocations: 2.07 MB / 0.8929 GB, free: 163.8 MB / 0.6075 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.04468/1.561, allocations: 14.75 MB / 0.9073 GB, free: 149.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01562/1.577, allocations: 7.061 MB / 0.9142 GB, free: 142.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/1.577, allocations: 0 / 0.9142 GB, free: 142.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.008881/1.585, allocations: 3.778 MB / 0.9179 GB, free: 138.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006409/1.592, allocations: 0.7747 MB / 0.9187 GB, free: 137.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1694/1.761, allocations: 54.75 MB / 0.9722 GB, free: 81.43 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002578/1.764, allocations: 3.307 MB / 0.9754 GB, free: 78.08 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00391/1.768, allocations: 1.584 MB / 0.9769 GB, free: 76.53 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002976/1.771, allocations: 2.048 MB / 0.9789 GB, free: 74.48 MB / 0.6075 GB Notification: Performance of SimCode: time 9.51e-07/1.771, allocations: 0 / 0.9789 GB, free: 74.48 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4359/2.207, allocations: 128.7 MB / 1.105 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.27/38.47, allocations: 4.062 kB / 1.105 GB, free: 173.1 MB / 0.6075 GB " [Timeout remaining time 621] (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: 41.49759595800424] Failed to read output from testmodel.py, exit status != 0: 38.70099489699351 38.710823284 38.204541357 Calling exit ...