Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005358/0.005358, allocations: 102 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 195 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08345/0.08345, allocations: 15.3 MB / 305.8 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 53.61 MB / 478.3 MB, free: 6.289 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC): time 0.04055/0.1436, allocations: 29.23 MB / 0.4957 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2502/0.3938, allocations: 26.06 MB / 0.5211 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/0.3955, allocations: 26.88 kB / 0.5211 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.3974, allocations: 0.603 MB / 0.5217 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006994/0.4044, allocations: 2.162 MB / 0.5238 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0104/0.4148, allocations: 3.538 MB / 0.5273 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007943/0.4228, allocations: 7.399 MB / 0.5345 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00664/0.4295, allocations: 5.929 MB / 0.5403 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007423/0.4369, allocations: 4.868 MB / 0.5451 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008389/0.4454, allocations: 4.63 MB / 0.5496 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003066/0.4485, allocations: 0.668 MB / 0.5502 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01407/0.4626, allocations: 3.32 MB / 0.5535 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004113/0.4667, allocations: 1.788 MB / 0.5552 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008478/0.4752, allocations: 3.338 MB / 0.5585 GB, free: 5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02191/0.4972, allocations: 11.11 MB / 0.5693 GB, free: 9.855 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.4972, allocations: 0 / 0.5693 GB, free: 9.855 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4973, allocations: 2.656 kB / 0.5693 GB, free: 9.855 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003302/0.4976, allocations: 0 / 0.5693 GB, free: 9.855 MB / 414.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.02173/0.5193, allocations: 7.427 MB / 0.5766 GB, free: 2.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.5194, allocations: 8.031 kB / 0.5766 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001938/0.5213, allocations: 0.6579 MB / 0.5772 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006493/0.5278, allocations: 1.216 MB / 0.5784 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007544/0.5354, allocations: 3.217 MB / 0.5816 GB, free: 13.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007696/0.5362, allocations: 0.6727 MB / 0.5822 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002093/0.5383, allocations: 0.4885 MB / 0.5827 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02215/0.5605, allocations: 9.366 MB / 0.5918 GB, free: 2.555 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.5606, allocations: 6.594 kB / 0.5918 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001034/0.5617, allocations: 196 kB / 0.592 GB, free: 2.359 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.5618, allocations: 116 kB / 0.5921 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02385/0.5857, allocations: 12.59 MB / 0.6044 GB, free: 5.629 MB / 446.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.06177/0.6475, allocations: 30.16 MB / 0.6339 GB, free: 6.809 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06299/0.7105, allocations: 41.26 MB / 0.6742 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009199/0.7197, allocations: 5.068 MB / 0.6791 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04337/0.7632, allocations: 20.91 MB / 0.6996 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.22e-05/0.7633, allocations: 67.84 kB / 0.6996 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003821/0.7671, allocations: 0.9629 MB / 0.7006 GB, free: 15.02 MB / 0.545 GB Notification: Performance of pre-optimization done (n=324): time 1.272e-05/0.7671, allocations: 0 / 0.7006 GB, free: 15.02 MB / 0.545 GB Notification: Performance of matching and sorting (n=376): time 0.3066/1.074, allocations: 24.4 MB / 0.7244 GB, free: 186.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/1.074, allocations: 94.61 kB / 0.7245 GB, free: 186.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005213/1.079, allocations: 2.958 MB / 0.7274 GB, free: 185.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001119/1.08, allocations: 91.64 kB / 0.7275 GB, free: 185 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001444/1.082, allocations: 2.157 MB / 0.7296 GB, free: 183.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001917/1.084, allocations: 1.293 MB / 0.7308 GB, free: 182.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003254/1.087, allocations: 0.9772 MB / 0.7318 GB, free: 181.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.319e-05/1.087, allocations: 303.8 kB / 0.7321 GB, free: 181.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00488/1.092, allocations: 2.957 MB / 0.735 GB, free: 180.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005821/1.098, allocations: 4.48 MB / 0.7393 GB, free: 177.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009568/1.107, allocations: 7.811 MB / 0.747 GB, free: 173.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.593e-05/1.107, allocations: 18.72 kB / 0.747 GB, free: 173.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05782/1.165, allocations: 13.82 MB / 0.7605 GB, free: 166 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/1.165, allocations: 27.12 kB / 0.7605 GB, free: 166 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/1.165, allocations: 47.12 kB / 0.7606 GB, free: 166 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008664/1.174, allocations: 3.473 MB / 0.7639 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005568/1.18, allocations: 1.266 MB / 0.7652 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03079/1.211, allocations: 18.49 MB / 0.7832 GB, free: 143.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00486/1.215, allocations: 263.5 kB / 0.7835 GB, free: 143 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/1.217, allocations: 283 kB / 0.7838 GB, free: 142.7 MB / 0.545 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.003551/1.22, allocations: 1.452 MB / 0.7852 GB, free: 141.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001426/1.222, allocations: 343.7 kB / 0.7855 GB, free: 140.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03553/1.257, allocations: 9.659 MB / 0.7949 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.155e-05/1.257, allocations: 42.69 kB / 0.795 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-05/1.257, allocations: 8 kB / 0.795 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001252/1.257, allocations: 19.92 kB / 0.795 GB, free: 131.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04704/1.304, allocations: 15.43 MB / 0.8101 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.021e-05/1.304, allocations: 4 kB / 0.8101 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004367/1.309, allocations: 0.8464 MB / 0.8109 GB, free: 115 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005909/1.315, allocations: 2.122 MB / 0.813 GB, free: 112.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008873/1.316, allocations: 147.8 kB / 0.8131 GB, free: 112.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02126/1.337, allocations: 12.67 MB / 0.8255 GB, free: 99.63 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.337, allocations: 4 kB / 0.8255 GB, free: 99.63 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04034/1.377, allocations: 12.96 MB / 0.8381 GB, free: 86.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/1.38, allocations: 0.9375 MB / 0.8391 GB, free: 85.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/1.381, allocations: 94.67 kB / 0.8392 GB, free: 85.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003082/1.384, allocations: 167.8 kB / 0.8393 GB, free: 85.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001412/1.386, allocations: 462.4 kB / 0.8398 GB, free: 84.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006328/1.387, allocations: 139.9 kB / 0.8399 GB, free: 84.75 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002772/1.389, allocations: 1.989 MB / 0.8418 GB, free: 82.76 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.6e-07/1.389, allocations: 4 kB / 0.8418 GB, free: 82.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007703/1.397, allocations: 2.046 MB / 0.8438 GB, free: 80.83 MB / 0.545 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.0429/1.44, allocations: 14.74 MB / 0.8582 GB, free: 66.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01672/1.457, allocations: 7.433 MB / 0.8655 GB, free: 58.79 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/1.457, allocations: 2.625 kB / 0.8655 GB, free: 58.79 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008552/1.465, allocations: 4.091 MB / 0.8695 GB, free: 54.66 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004793/1.47, allocations: 0.7636 MB / 0.8702 GB, free: 53.95 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3612/1.831, allocations: 54.6 MB / 0.9236 GB, free: 172.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00518/1.837, allocations: 3.307 MB / 0.9268 GB, free: 171.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004269/1.841, allocations: 1.58 MB / 0.9283 GB, free: 171.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002696/1.844, allocations: 2.056 MB / 0.9303 GB, free: 171.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.41e-07/1.844, allocations: 0 / 0.9303 GB, free: 171.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1552/1.999, allocations: 127.3 MB / 1.055 GB, free: 65.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.31/36.31, allocations: 19 kB / 1.055 GB, free: 65.96 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC_fmu --startTime=0 --stopTime=15000 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1)