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.005273/0.005273, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.001312/0.001312, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2231/0.2231, allocations: 15.32 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 63.89 kB / 424.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2776, allocations: 53.61 MB / 478.3 MB, free: 25.62 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.03384/0.3115, allocations: 29.19 MB / 0.4956 GB, free: 5.508 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02844/0.3399, allocations: 26.08 MB / 0.5211 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002164/0.3421, allocations: 27.81 kB / 0.5211 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002246/0.3444, allocations: 0.5932 MB / 0.5217 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007538/0.352, allocations: 2.141 MB / 0.5238 GB, free: 8.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00967/0.3617, allocations: 3.518 MB / 0.5272 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00905/0.3708, allocations: 7.39 MB / 0.5345 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007578/0.3784, allocations: 5.927 MB / 0.5402 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006966/0.3854, allocations: 4.869 MB / 0.545 GB, free: 2.703 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008838/0.3943, allocations: 4.627 MB / 0.5495 GB, free: 14.06 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003512/0.3978, allocations: 0.668 MB / 0.5502 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01171/0.4095, allocations: 3.324 MB / 0.5534 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003266/0.4128, allocations: 1.784 MB / 0.5552 GB, free: 8.277 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006381/0.4192, allocations: 3.334 MB / 0.5584 GB, free: 4.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02195/0.4412, allocations: 11.11 MB / 0.5693 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4413, allocations: 0 / 0.5693 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4413, allocations: 3.984 kB / 0.5693 GB, free: 9.781 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003321/0.4416, allocations: 4 kB / 0.5693 GB, free: 9.777 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.02137/0.463, allocations: 7.427 MB / 0.5765 GB, free: 2.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.4631, allocations: 8.031 kB / 0.5765 GB, free: 2.262 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002131/0.4652, allocations: 0.6617 MB / 0.5772 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00696/0.4722, allocations: 1.215 MB / 0.5784 GB, free: 376 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007718/0.4799, allocations: 3.215 MB / 0.5815 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007446/0.4807, allocations: 0.6688 MB / 0.5822 GB, free: 12.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002273/0.483, allocations: 0.4962 MB / 0.5826 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02068/0.5037, allocations: 9.372 MB / 0.5918 GB, free: 2.359 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.5039, allocations: 0 / 0.5918 GB, free: 2.359 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/0.5049, allocations: 192 kB / 0.592 GB, free: 2.172 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-05/0.505, allocations: 116 kB / 0.5921 GB, free: 2.059 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02302/0.5281, allocations: 12.6 MB / 0.6044 GB, free: 5.441 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.2986/0.8267, allocations: 30.16 MB / 0.6338 GB, free: 97.56 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05335/0.8801, allocations: 41.27 MB / 0.6741 GB, free: 66.11 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007202/0.8874, allocations: 5.072 MB / 0.6791 GB, free: 61.01 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03219/0.9196, allocations: 20.9 MB / 0.6995 GB, free: 39.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.9197, allocations: 67.78 kB / 0.6996 GB, free: 39.35 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003159/0.9228, allocations: 0.9657 MB / 0.7005 GB, free: 38.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=324): time 1.293e-05/0.9229, allocations: 0 / 0.7005 GB, free: 38.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=376): time 0.0883/1.011, allocations: 24.4 MB / 0.7244 GB, free: 14.07 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/1.011, allocations: 90.3 kB / 0.7244 GB, free: 13.97 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002929/1.014, allocations: 2.954 MB / 0.7273 GB, free: 11 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009499/1.015, allocations: 89.7 kB / 0.7274 GB, free: 10.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009633/1.016, allocations: 2.163 MB / 0.7295 GB, free: 8.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.018, allocations: 1.301 MB / 0.7308 GB, free: 7.441 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001503/1.019, allocations: 0.9804 MB / 0.7317 GB, free: 6.449 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.418e-05/1.019, allocations: 301.1 kB / 0.732 GB, free: 6.152 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003825/1.023, allocations: 2.952 MB / 0.7349 GB, free: 3.191 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005148/1.028, allocations: 4.486 MB / 0.7393 GB, free: 14.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/1.04, allocations: 7.804 MB / 0.7469 GB, free: 5.664 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-05/1.04, allocations: 12 kB / 0.7469 GB, free: 5.652 MB / 494.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05775/1.098, allocations: 13.83 MB / 0.7604 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.224e-05/1.098, allocations: 32.66 kB / 0.7605 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.598e-05/1.098, allocations: 47 kB / 0.7605 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009042/1.107, allocations: 3.475 MB / 0.7639 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005454/1.113, allocations: 1.266 MB / 0.7651 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03436/1.147, allocations: 18.48 MB / 0.7832 GB, free: 412 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004348/1.152, allocations: 255.7 kB / 0.7834 GB, free: 156 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/1.153, allocations: 286.6 kB / 0.7837 GB, free: 15.88 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.003578/1.156, allocations: 1.452 MB / 0.7851 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/1.157, allocations: 339.7 kB / 0.7854 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03811/1.195, allocations: 9.663 MB / 0.7949 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-05/1.196, allocations: 40 kB / 0.7949 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-05/1.196, allocations: 4.562 kB / 0.7949 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001342/1.196, allocations: 20.61 kB / 0.7949 GB, free: 4.426 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04986/1.246, allocations: 15.44 MB / 0.81 GB, free: 4.941 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-05/1.246, allocations: 0 / 0.81 GB, free: 4.941 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004581/1.25, allocations: 0.858 MB / 0.8109 GB, free: 4.086 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006606/1.257, allocations: 2.12 MB / 0.8129 GB, free: 1.984 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/1.258, allocations: 139.8 kB / 0.8131 GB, free: 1.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2627/1.521, allocations: 12.67 MB / 0.8254 GB, free: 177 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.521, allocations: 4.062 kB / 0.8254 GB, free: 177 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04428/1.565, allocations: 12.97 MB / 0.8381 GB, free: 173 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002791/1.568, allocations: 0.9324 MB / 0.839 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.569, allocations: 96.03 kB / 0.8391 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003047/1.572, allocations: 164 kB / 0.8393 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/1.573, allocations: 456.9 kB / 0.8397 GB, free: 172.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/1.574, allocations: 144.8 kB / 0.8398 GB, free: 172.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002934/1.577, allocations: 1.992 MB / 0.8418 GB, free: 171.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.9e-07/1.577, allocations: 0 / 0.8418 GB, free: 171.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007741/1.584, allocations: 2.05 MB / 0.8438 GB, free: 171.6 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.04168/1.626, allocations: 14.73 MB / 0.8582 GB, free: 163.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01385/1.64, allocations: 7.433 MB / 0.8654 GB, free: 158.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.64, allocations: 0 / 0.8654 GB, free: 158.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007554/1.648, allocations: 4.09 MB / 0.8694 GB, free: 154.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003809/1.652, allocations: 0.7807 MB / 0.8702 GB, free: 153.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.144/1.796, allocations: 54.61 MB / 0.9235 GB, free: 97.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/1.798, allocations: 3.305 MB / 0.9267 GB, free: 94.66 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003818/1.802, allocations: 1.577 MB / 0.9283 GB, free: 93.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002628/1.804, allocations: 2.052 MB / 0.9303 GB, free: 91.18 MB / 0.545 GB Notification: Performance of SimCode: time 1.123e-06/1.804, allocations: 0 / 0.9303 GB, free: 91.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.403/2.207, allocations: 129.3 MB / 1.057 GB, free: 162.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.04/35.24, allocations: 15.67 kB / 1.057 GB, free: 162.4 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)