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.00103/0.00103, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001099/0.001099, allocations: 195.6 kB / 16.14 MB, free: 6.66 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.231/1.231, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1743/0.1743, allocations: 15.32 MB / 305.3 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 63.91 kB / 369.8 MB, free: 4.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08829/0.08951, allocations: 53.6 MB / 423.4 MB, free: 14.7 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.3217/0.4113, allocations: 29.97 MB / 453.3 MB, free: 38.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02104/0.4323, allocations: 26.03 MB / 479.4 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00172/0.4341, allocations: 42.34 kB / 479.4 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.4356, allocations: 0.5221 MB / 479.9 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00555/0.4411, allocations: 1.877 MB / 481.8 MB, free: 24.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007675/0.4488, allocations: 3.08 MB / 484.9 MB, free: 22.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005705/0.4546, allocations: 7.254 MB / 492.1 MB, free: 18.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004862/0.4594, allocations: 4.995 MB / 497.1 MB, free: 16.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005625/0.4651, allocations: 4.727 MB / 0.4901 GB, free: 15.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006417/0.4715, allocations: 4.39 MB / 0.4944 GB, free: 12.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001566/0.4731, allocations: 484 kB / 0.4948 GB, free: 11.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009792/0.4829, allocations: 3.131 MB / 0.4979 GB, free: 9.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/0.4848, allocations: 1.54 MB / 0.4994 GB, free: 7.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003663/0.4884, allocations: 3.091 MB / 0.5024 GB, free: 5.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01414/0.5026, allocations: 10.49 MB / 0.5127 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.5026, allocations: 0 / 0.5127 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5026, allocations: 4 kB / 0.5127 GB, free: 10.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000204/0.5028, allocations: 0 / 0.5127 GB, free: 10.74 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.01739/0.5202, allocations: 7.434 MB / 0.5199 GB, free: 3.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5203, allocations: 12.03 kB / 0.5199 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001032/0.5213, allocations: 0.6579 MB / 0.5206 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005506/0.5268, allocations: 1.211 MB / 0.5218 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005834/0.5327, allocations: 3.141 MB / 0.5248 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004902/0.5332, allocations: 0.6688 MB / 0.5255 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001143/0.5343, allocations: 0.4962 MB / 0.526 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/0.5519, allocations: 9.368 MB / 0.5351 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001473/0.5521, allocations: 4 kB / 0.5351 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00118/0.5533, allocations: 196 kB / 0.5353 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.518e-05/0.5534, allocations: 116 kB / 0.5354 GB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02058/0.574, allocations: 12.59 MB / 0.5477 GB, free: 6.484 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.05492/0.6289, allocations: 30.23 MB / 0.5772 GB, free: 7.547 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2106/0.8395, allocations: 41.26 MB / 0.6175 GB, free: 106.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006615/0.8462, allocations: 5.073 MB / 0.6225 GB, free: 106.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02663/0.8728, allocations: 20.92 MB / 0.6429 GB, free: 96.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.8729, allocations: 67.36 kB / 0.643 GB, free: 96.92 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003542/0.8765, allocations: 0.9485 MB / 0.6439 GB, free: 96.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=324): time 1.215e-05/0.8765, allocations: 0 / 0.6439 GB, free: 96.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=376): time 0.0894/0.9659, allocations: 24.4 MB / 0.6677 GB, free: 88.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.966, allocations: 90.17 kB / 0.6678 GB, free: 88.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003817/0.9698, allocations: 2.961 MB / 0.6707 GB, free: 87.19 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008958/0.9707, allocations: 84.67 kB / 0.6708 GB, free: 87.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001184/0.9719, allocations: 2.167 MB / 0.6729 GB, free: 85.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001564/0.9735, allocations: 1.296 MB / 0.6742 GB, free: 84.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002451/0.9759, allocations: 0.9791 MB / 0.6751 GB, free: 83.56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.637e-05/0.976, allocations: 301.1 kB / 0.6754 GB, free: 83.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004385/0.9804, allocations: 2.957 MB / 0.6783 GB, free: 81.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005012/0.9854, allocations: 4.478 MB / 0.6827 GB, free: 78.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009733/0.9952, allocations: 7.805 MB / 0.6903 GB, free: 70.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.455e-05/0.9953, allocations: 13.31 kB / 0.6903 GB, free: 70.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05366/1.049, allocations: 13.83 MB / 0.7038 GB, free: 56.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.72e-05/1.049, allocations: 28 kB / 0.7039 GB, free: 56.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.931e-05/1.049, allocations: 48 kB / 0.7039 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008145/1.057, allocations: 3.466 MB / 0.7073 GB, free: 53.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005078/1.062, allocations: 1.269 MB / 0.7085 GB, free: 52.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02794/1.09, allocations: 16.62 MB / 0.7248 GB, free: 35.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/1.095, allocations: 365.9 kB / 0.7251 GB, free: 34.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009008/1.096, allocations: 283.8 kB / 0.7254 GB, free: 34.5 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.002866/1.099, allocations: 1.439 MB / 0.7268 GB, free: 33.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/1.1, allocations: 347.7 kB / 0.7271 GB, free: 32.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03465/1.134, allocations: 9.661 MB / 0.7365 GB, free: 23.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.877e-05/1.135, allocations: 40 kB / 0.7366 GB, free: 23.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.622e-05/1.135, allocations: 4 kB / 0.7366 GB, free: 23.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000119/1.135, allocations: 19.92 kB / 0.7366 GB, free: 23.06 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04329/1.178, allocations: 15.46 MB / 0.7517 GB, free: 7.625 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/1.178, allocations: 4.75 kB / 0.7517 GB, free: 7.621 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00367/1.182, allocations: 0.8454 MB / 0.7525 GB, free: 6.777 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005593/1.187, allocations: 2.119 MB / 0.7546 GB, free: 4.695 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005231/1.188, allocations: 146.5 kB / 0.7547 GB, free: 4.555 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0217/1.21, allocations: 11.43 MB / 0.7659 GB, free: 8.754 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/1.21, allocations: 4 kB / 0.7659 GB, free: 8.75 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2091/1.419, allocations: 12.98 MB / 0.7786 GB, free: 131.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00223/1.421, allocations: 0.9293 MB / 0.7795 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005642/1.422, allocations: 95.84 kB / 0.7796 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.424, allocations: 259.8 kB / 0.7798 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009795/1.425, allocations: 449.5 kB / 0.7802 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002883/1.425, allocations: 143.3 kB / 0.7804 GB, free: 131.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002148/1.427, allocations: 1.992 MB / 0.7823 GB, free: 131.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.427, allocations: 3.125 kB / 0.7823 GB, free: 131.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005664/1.433, allocations: 2.041 MB / 0.7843 GB, free: 131.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.04033/1.473, allocations: 14.73 MB / 0.7987 GB, free: 127.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01369/1.487, allocations: 7.396 MB / 0.8059 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/1.487, allocations: 0 / 0.8059 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007611/1.495, allocations: 4.091 MB / 0.8099 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00367/1.499, allocations: 0.7229 MB / 0.8106 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1485/1.647, allocations: 62.27 MB / 0.8714 GB, free: 75.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001914/1.649, allocations: 3.306 MB / 0.8747 GB, free: 72.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004279/1.653, allocations: 1.602 MB / 0.8762 GB, free: 70.97 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002413/1.656, allocations: 2.04 MB / 0.8782 GB, free: 68.94 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/1.656, allocations: 0 / 0.8782 GB, free: 68.94 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3087/1.965, allocations: 124 MB / 0.9993 GB, free: 134.7 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/1.965, allocations: 231.2 kB / 0.9996 GB, free: 134.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.969/6.934, allocations: 0 / 0.9996 GB, free: 134.5 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 & /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)