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.004927/0.004927, allocations: 99.27 kB / 15.73 MB, free: 6.039 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.00126/0.00126, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.187/0.187, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 59.91 kB / 424.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2406, allocations: 53.6 MB / 478.3 MB, free: 25.76 MB / 366.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.03294/0.2736, allocations: 29.74 MB / 0.4962 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03052/0.3041, allocations: 26.08 MB / 0.5216 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.3058, allocations: 23.88 kB / 0.5217 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.3076, allocations: 0.5931 MB / 0.5222 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006272/0.3138, allocations: 2.145 MB / 0.5243 GB, free: 8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009291/0.3232, allocations: 3.519 MB / 0.5278 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009319/0.3325, allocations: 7.386 MB / 0.535 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0077/0.3402, allocations: 5.924 MB / 0.5408 GB, free: 7.047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00755/0.3478, allocations: 4.877 MB / 0.5455 GB, free: 2.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00836/0.3562, allocations: 4.627 MB / 0.5501 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00249/0.3588, allocations: 0.668 MB / 0.5507 GB, free: 12.85 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01126/0.37, allocations: 3.32 MB / 0.5539 GB, free: 9.527 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003536/0.3736, allocations: 1.784 MB / 0.5557 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006096/0.3797, allocations: 3.342 MB / 0.559 GB, free: 4.383 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01926/0.399, allocations: 11.14 MB / 0.5698 GB, free: 9.207 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3991, allocations: 0 / 0.5698 GB, free: 9.207 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3991, allocations: 0 / 0.5698 GB, free: 9.207 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002903/0.3994, allocations: 0 / 0.5698 GB, free: 9.207 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.02163/0.421, allocations: 7.585 MB / 0.5772 GB, free: 1.531 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.4211, allocations: 8.031 kB / 0.5772 GB, free: 1.523 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00228/0.4234, allocations: 0.6656 MB / 0.5779 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00696/0.4303, allocations: 1.238 MB / 0.5791 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007434/0.4378, allocations: 3.229 MB / 0.5823 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007839/0.4386, allocations: 0.6805 MB / 0.5829 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002246/0.4409, allocations: 0.4924 MB / 0.5834 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/0.4623, allocations: 9.364 MB / 0.5925 GB, free: 1.586 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.4624, allocations: 7.938 kB / 0.5926 GB, free: 1.578 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.4634, allocations: 192 kB / 0.5927 GB, free: 1.391 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.4636, allocations: 120 kB / 0.5929 GB, free: 1.273 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02373/0.4873, allocations: 12.59 MB / 0.6052 GB, free: 4.66 MB / 478.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.2719/0.7593, allocations: 30.21 MB / 0.6347 GB, free: 96.91 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05099/0.8103, allocations: 41.26 MB / 0.6749 GB, free: 64.97 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007348/0.8177, allocations: 5.076 MB / 0.6799 GB, free: 59.87 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03321/0.8509, allocations: 20.92 MB / 0.7003 GB, free: 38.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.851, allocations: 69.11 kB / 0.7004 GB, free: 38.22 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003358/0.8544, allocations: 0.9796 MB / 0.7013 GB, free: 37.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=324): time 1.44e-05/0.8544, allocations: 0 / 0.7013 GB, free: 37.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=376): time 0.08872/0.9431, allocations: 24.47 MB / 0.7252 GB, free: 13.06 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.9432, allocations: 90.36 kB / 0.7253 GB, free: 12.96 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00313/0.9464, allocations: 2.962 MB / 0.7282 GB, free: 10.01 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008587/0.9472, allocations: 85.7 kB / 0.7283 GB, free: 9.922 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009513/0.9482, allocations: 2.227 MB / 0.7305 GB, free: 7.957 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001202/0.9494, allocations: 1.367 MB / 0.7318 GB, free: 6.703 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/0.9507, allocations: 0.9846 MB / 0.7328 GB, free: 5.707 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.7e-05/0.9507, allocations: 301.1 kB / 0.7331 GB, free: 5.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003641/0.9543, allocations: 2.96 MB / 0.736 GB, free: 2.441 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005218/0.9596, allocations: 4.48 MB / 0.7403 GB, free: 13.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01277/0.9724, allocations: 7.804 MB / 0.748 GB, free: 4.926 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.35e-05/0.9724, allocations: 16 kB / 0.748 GB, free: 4.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.06107/1.034, allocations: 13.84 MB / 0.7615 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/1.034, allocations: 26.62 kB / 0.7615 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.065e-05/1.034, allocations: 50.62 kB / 0.7616 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01/1.044, allocations: 3.474 MB / 0.765 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005876/1.05, allocations: 1.265 MB / 0.7662 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03778/1.087, allocations: 18.5 MB / 0.7842 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004451/1.092, allocations: 255.7 kB / 0.7845 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/1.093, allocations: 279.8 kB / 0.7848 GB, free: 15.1 MB / 0.5294 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.00339/1.096, allocations: 1.451 MB / 0.7862 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/1.097, allocations: 361.6 kB / 0.7865 GB, free: 13.29 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03983/1.137, allocations: 9.66 MB / 0.796 GB, free: 3.695 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.658e-05/1.137, allocations: 42.88 kB / 0.796 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.965e-05/1.137, allocations: 10.62 kB / 0.796 GB, free: 3.648 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001301/1.138, allocations: 19.92 kB / 0.796 GB, free: 3.629 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.051/1.189, allocations: 15.44 MB / 0.8111 GB, free: 4.141 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.728e-05/1.189, allocations: 7.906 kB / 0.8111 GB, free: 4.137 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004818/1.193, allocations: 0.8503 MB / 0.8119 GB, free: 3.281 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006616/1.2, allocations: 2.125 MB / 0.814 GB, free: 1.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007302/1.201, allocations: 135.9 kB / 0.8141 GB, free: 1.047 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2227/1.424, allocations: 12.68 MB / 0.8265 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/1.424, allocations: 7.281 kB / 0.8265 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04056/1.464, allocations: 12.98 MB / 0.8392 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002274/1.466, allocations: 0.9545 MB / 0.8401 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008231/1.467, allocations: 88.89 kB / 0.8402 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0025/1.47, allocations: 170 kB / 0.8404 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001109/1.471, allocations: 458 kB / 0.8408 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003355/1.471, allocations: 148.4 kB / 0.841 GB, free: 172 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002555/1.474, allocations: 1.986 MB / 0.8429 GB, free: 171.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.474, allocations: 0 / 0.8429 GB, free: 171.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006125/1.48, allocations: 2.062 MB / 0.8449 GB, free: 171 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.04009/1.52, allocations: 14.77 MB / 0.8593 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01257/1.533, allocations: 7.431 MB / 0.8666 GB, free: 157.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.533, allocations: 0 / 0.8666 GB, free: 157.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006945/1.54, allocations: 4.09 MB / 0.8706 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003757/1.543, allocations: 0.7807 MB / 0.8714 GB, free: 152.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1438/1.687, allocations: 54.79 MB / 0.9249 GB, free: 96.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002337/1.69, allocations: 3.306 MB / 0.9281 GB, free: 93.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003719/1.693, allocations: 1.582 MB / 0.9296 GB, free: 92.12 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002632/1.696, allocations: 2.056 MB / 0.9316 GB, free: 90.06 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/1.696, allocations: 0 / 0.9316 GB, free: 90.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4051/2.101, allocations: 127.3 MB / 1.056 GB, free: 162.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.21/35.32, allocations: 7.766 kB / 1.056 GB, free: 162.1 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.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_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1)