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.001989/0.001989, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002346/0.002346, allocations: 196 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.603/2.603, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4134/0.4134, allocations: 15.33 MB / 305.7 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002582/0.002582, allocations: 67.89 kB / 370.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2052, allocations: 53.61 MB / 424.1 MB, free: 14.18 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.6946/0.8999, allocations: 29.18 MB / 453.2 MB, free: 39.15 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05042/0.9503, allocations: 26.06 MB / 479.3 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00261/0.953, allocations: 25.38 kB / 479.3 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003415/0.9565, allocations: 0.5982 MB / 479.9 MB, free: 25.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01324/0.9698, allocations: 2.14 MB / 482.1 MB, free: 24.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02103/0.9908, allocations: 3.519 MB / 485.6 MB, free: 21.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01471/1.006, allocations: 7.357 MB / 492.9 MB, free: 18.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01502/1.021, allocations: 5.929 MB / 498.9 MB, free: 16.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01365/1.034, allocations: 4.862 MB / 0.4919 GB, free: 14.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0157/1.05, allocations: 4.623 MB / 0.4964 GB, free: 10.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004894/1.055, allocations: 0.6718 MB / 0.4971 GB, free: 10.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02823/1.083, allocations: 3.325 MB / 0.5003 GB, free: 7.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007195/1.091, allocations: 1.783 MB / 0.5021 GB, free: 5.664 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01146/1.102, allocations: 3.338 MB / 0.5053 GB, free: 2.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04076/1.143, allocations: 11 MB / 0.5161 GB, free: 7.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/1.143, allocations: 3.938 kB / 0.5161 GB, free: 7.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.825e-06/1.143, allocations: 0 / 0.5161 GB, free: 7.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003671/1.144, allocations: 0 / 0.5161 GB, free: 7.363 MB / 382.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.04564/1.189, allocations: 7.439 MB / 0.5234 GB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001011/1.189, allocations: 8.031 kB / 0.5234 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005156/1.195, allocations: 0.6579 MB / 0.524 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0152/1.21, allocations: 1.207 MB / 0.5252 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01418/1.224, allocations: 3.138 MB / 0.5283 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001497/1.226, allocations: 0.6727 MB / 0.5289 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004036/1.23, allocations: 0.4923 MB / 0.5294 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04192/1.272, allocations: 9.372 MB / 0.5385 GB, free: 24 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003228/1.272, allocations: 3.938 kB / 0.5385 GB, free: 20 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003428/1.276, allocations: 196.1 kB / 0.5387 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001879/1.276, allocations: 116 kB / 0.5388 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05095/1.327, allocations: 12.59 MB / 0.5511 GB, free: 3.105 MB / 414.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.1148/1.442, allocations: 30.32 MB / 0.5807 GB, free: 4.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5329/1.975, allocations: 41.26 MB / 0.621 GB, free: 106.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01555/1.99, allocations: 5.068 MB / 0.626 GB, free: 106.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07732/2.068, allocations: 20.91 MB / 0.6464 GB, free: 96.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.099e-05/2.068, allocations: 63.86 kB / 0.6465 GB, free: 96.55 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006204/2.074, allocations: 0.9689 MB / 0.6474 GB, free: 96.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=324): time 2.461e-05/2.074, allocations: 2.938 kB / 0.6474 GB, free: 96.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=376): time 0.2104/2.285, allocations: 24.4 MB / 0.6712 GB, free: 87.89 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/2.285, allocations: 97.88 kB / 0.6713 GB, free: 87.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/2.296, allocations: 2.956 MB / 0.6742 GB, free: 86.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001612/2.298, allocations: 88.61 kB / 0.6743 GB, free: 86.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002631/2.3, allocations: 2.163 MB / 0.6764 GB, free: 84.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003299/2.304, allocations: 1.292 MB / 0.6777 GB, free: 83.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006577/2.31, allocations: 0.9817 MB / 0.6786 GB, free: 82.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.912e-05/2.31, allocations: 301.1 kB / 0.6789 GB, free: 82.36 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009446/2.32, allocations: 2.962 MB / 0.6818 GB, free: 79.58 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01184/2.332, allocations: 4.477 MB / 0.6862 GB, free: 74.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02234/2.354, allocations: 7.804 MB / 0.6938 GB, free: 66.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/2.354, allocations: 12 kB / 0.6938 GB, free: 66.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.1262/2.481, allocations: 13.83 MB / 0.7073 GB, free: 52.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/2.481, allocations: 25.31 kB / 0.7074 GB, free: 52.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/2.481, allocations: 48 kB / 0.7074 GB, free: 52.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02024/2.501, allocations: 3.469 MB / 0.7108 GB, free: 49.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009938/2.511, allocations: 1.274 MB / 0.712 GB, free: 48.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06144/2.573, allocations: 18.48 MB / 0.7301 GB, free: 29.35 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01431/2.587, allocations: 260.9 kB / 0.7303 GB, free: 29.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002135/2.589, allocations: 279.8 kB / 0.7306 GB, free: 28.82 MB / 462.1 MB 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.007205/2.597, allocations: 1.455 MB / 0.732 GB, free: 27.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002667/2.599, allocations: 343.6 kB / 0.7323 GB, free: 27.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09902/2.698, allocations: 9.666 MB / 0.7418 GB, free: 17.44 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.006e-05/2.699, allocations: 40 kB / 0.7418 GB, free: 17.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.239e-05/2.699, allocations: 4 kB / 0.7418 GB, free: 17.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001676/2.699, allocations: 21.2 kB / 0.7418 GB, free: 17.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08837/2.787, allocations: 15.44 MB / 0.7569 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.099e-05/2.787, allocations: 0 / 0.7569 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008002/2.795, allocations: 0.8502 MB / 0.7578 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01168/2.807, allocations: 2.128 MB / 0.7598 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001492/2.809, allocations: 135.9 kB / 0.76 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05479/2.863, allocations: 12.68 MB / 0.7724 GB, free: 1.809 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/2.864, allocations: 4 kB / 0.7724 GB, free: 1.805 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.622/3.486, allocations: 12.96 MB / 0.785 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004277/3.49, allocations: 0.9351 MB / 0.7859 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002237/3.492, allocations: 94.52 kB / 0.786 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006206/3.499, allocations: 166 kB / 0.7862 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006688/3.505, allocations: 455.6 kB / 0.7866 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001454/3.507, allocations: 147.1 kB / 0.7868 GB, free: 133.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005269/3.512, allocations: 1.992 MB / 0.7887 GB, free: 132.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.21e-07/3.512, allocations: 0 / 0.7887 GB, free: 132.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01836/3.53, allocations: 2.048 MB / 0.7907 GB, free: 132.5 MB / 478.1 MB 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.1176/3.648, allocations: 14.74 MB / 0.8051 GB, free: 127.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.09779/3.746, allocations: 14.97 MB / 0.8197 GB, free: 125.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/3.746, allocations: 0 / 0.8197 GB, free: 125.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.02093/3.767, allocations: 4.096 MB / 0.8237 GB, free: 123.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01395/3.781, allocations: 0.7785 MB / 0.8245 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3581/4.139, allocations: 60.22 MB / 0.8833 GB, free: 63.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00712/4.146, allocations: 3.308 MB / 0.8865 GB, free: 60.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01151/4.158, allocations: 1.578 MB / 0.888 GB, free: 58.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006977/4.165, allocations: 2.051 MB / 0.89 GB, free: 56.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.483e-06/4.165, allocations: 0 / 0.89 GB, free: 56.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9803/5.145, allocations: 127.7 MB / 1.015 GB, free: 118.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.52/30.66, allocations: 7.438 kB / 1.015 GB, free: 118.8 MB / 494.1 MB (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)