Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.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: translateModel(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO") translateModel(Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002005/0.002005, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.00228/0.00228, allocations: 185.5 kB / 17.34 MB, free: 5.742 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.204/2.204, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1556/0.1556, allocations: 15.31 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002512/0.002512, allocations: 63.89 kB / 425.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.168, allocations: 53.61 MB / 479.5 MB, free: 5.754 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.HemoglobinMultipleAllosteryCO): time 0.7388/0.9069, allocations: 45.02 MB / 0.5122 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1782/1.085, allocations: 86.75 MB / 0.5969 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007675/1.093, allocations: 66.72 kB / 0.597 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01068/1.104, allocations: 1.923 MB / 0.5989 GB, free: 8.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03404/1.138, allocations: 7.017 MB / 0.6057 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06621/1.204, allocations: 12.18 MB / 0.6176 GB, free: 5.57 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.05937/1.263, allocations: 31.04 MB / 0.6479 GB, free: 6.434 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04451/1.308, allocations: 26.3 MB / 0.6736 GB, free: 12 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04145/1.349, allocations: 20.24 MB / 0.6934 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.05732/1.407, allocations: 18.88 MB / 0.7118 GB, free: 4.789 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.01897/1.426, allocations: 3.598 MB / 0.7153 GB, free: 1.191 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.425/1.851, allocations: 12.67 MB / 0.7277 GB, free: 53.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.01703/1.868, allocations: 8.123 MB / 0.7357 GB, free: 53.95 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.04394/1.912, allocations: 14.1 MB / 0.7494 GB, free: 52.58 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.1564/2.068, allocations: 49.26 MB / 0.7975 GB, free: 41.61 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.351e-05/2.069, allocations: 0 / 0.7975 GB, free: 41.61 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.767e-06/2.069, allocations: 0 / 0.7975 GB, free: 41.61 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.001673/2.07, allocations: 0 / 0.7975 GB, free: 41.61 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4405 * Number of variables: 4405 Notification: Performance of Generate backend data structure: time 0.1924/2.263, allocations: 28.83 MB / 0.8257 GB, free: 22.04 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/2.263, allocations: 10.69 kB / 0.8257 GB, free: 22.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05682/2.32, allocations: 4.521 MB / 0.8301 GB, free: 17.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06214/2.382, allocations: 13.96 MB / 0.8437 GB, free: 4.082 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003648/2.386, allocations: 2.542 MB / 0.8462 GB, free: 1.277 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01776/2.403, allocations: 1.769 MB / 0.848 GB, free: 15.51 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1897/2.593, allocations: 40.44 MB / 0.8874 GB, free: 6.832 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001144/2.594, allocations: 9.969 kB / 0.8875 GB, free: 6.828 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0179/2.612, allocations: 0.6833 MB / 0.8881 GB, free: 6.148 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008876/2.613, allocations: 416 kB / 0.8885 GB, free: 5.742 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7223/3.336, allocations: 54.47 MB / 0.9417 GB, free: 145.5 MB / 0.6388 GB 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.5829/3.918, allocations: 148.8 MB / 1.087 GB, free: 68.02 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 2.345/6.263, allocations: 351.6 MB / 1.43 GB, free: 44.51 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.06764/6.331, allocations: 23.07 MB / 1.453 GB, free: 21.41 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7165/7.048, allocations: 101.9 MB / 1.552 GB, free: 213.1 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/7.048, allocations: 149.7 kB / 1.553 GB, free: 213 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04358/7.091, allocations: 5.268 MB / 1.558 GB, free: 211.8 MB / 0.67 GB Notification: Performance of pre-optimization done (n=1160): time 8.184e-05/7.092, allocations: 0 / 1.558 GB, free: 211.8 MB / 0.67 GB Notification: Performance of matching and sorting (n=1312): time 1.919/9.01, allocations: 149.6 MB / 1.704 GB, free: 230 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002879/9.011, allocations: 185.2 kB / 1.704 GB, free: 229.9 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04131/9.052, allocations: 11.97 MB / 1.716 GB, free: 227.2 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.006183/9.058, allocations: 241 kB / 1.716 GB, free: 227 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.01073/9.069, allocations: 8.046 MB / 1.724 GB, free: 222.5 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0123/9.081, allocations: 4.544 MB / 1.728 GB, free: 219 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.02584/9.107, allocations: 3.798 MB / 1.732 GB, free: 217.6 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 6.392e-05/9.108, allocations: 304.9 kB / 1.732 GB, free: 217.3 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04118/9.149, allocations: 13.85 MB / 1.746 GB, free: 212.2 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0486/9.197, allocations: 19.33 MB / 1.765 GB, free: 200.4 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1102/9.308, allocations: 34.69 MB / 1.799 GB, free: 181.6 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003737/9.308, allocations: 54.31 kB / 1.799 GB, free: 181.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=2196) (initialization): time 1.019/10.33, allocations: 93.15 MB / 1.89 GB, free: 99.08 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.000557/10.33, allocations: 80 kB / 1.89 GB, free: 99 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006734/10.33, allocations: 172 kB / 1.89 GB, free: 98.84 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1504/10.48, allocations: 25.93 MB / 1.915 GB, free: 73.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.6151/11.09, allocations: 4.335 MB / 1.919 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4757/11.57, allocations: 109 MB / 2.026 GB, free: 181.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04409/11.61, allocations: 0.9821 MB / 2.027 GB, free: 180.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01229/11.63, allocations: 1.085 MB / 2.028 GB, free: 179 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 782 * 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 (2138): * Single equations (assignments): 2135 * 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%), (41,12,73.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.03319/11.66, allocations: 6.213 MB / 2.034 GB, free: 172.8 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01212/11.67, allocations: 1.225 MB / 2.035 GB, free: 172.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6003/12.27, allocations: 57.55 MB / 2.091 GB, free: 115.6 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000305/12.27, allocations: 140 kB / 2.091 GB, free: 115.5 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002943/12.27, allocations: 20 kB / 2.091 GB, free: 115.5 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007196/12.27, allocations: 67.73 kB / 2.091 GB, free: 115.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.199/13.47, allocations: 86.2 MB / 2.176 GB, free: 202.3 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002142/13.47, allocations: 1.938 kB / 2.176 GB, free: 202.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03297/13.51, allocations: 2.819 MB / 2.178 GB, free: 202.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07364/13.58, allocations: 14.34 MB / 2.192 GB, free: 202 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006734/13.59, allocations: 0.5494 MB / 2.193 GB, free: 202 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2766/13.86, allocations: 56.51 MB / 2.248 GB, free: 177.5 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/13.86, allocations: 3.906 kB / 2.248 GB, free: 177.5 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6721/14.54, allocations: 74.67 MB / 2.321 GB, free: 111.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02384/14.56, allocations: 3.866 MB / 2.325 GB, free: 108.3 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01089/14.57, allocations: 339.9 kB / 2.325 GB, free: 108 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02881/14.6, allocations: 0.6165 MB / 2.326 GB, free: 107.4 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.01453/14.61, allocations: 1.802 MB / 2.328 GB, free: 105.6 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006335/14.62, allocations: 0.5489 MB / 2.328 GB, free: 105 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.02491/14.65, allocations: 8.234 MB / 2.336 GB, free: 96.83 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.122e-06/14.65, allocations: 0 / 2.336 GB, free: 96.83 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.05291/14.7, allocations: 7.83 MB / 2.344 GB, free: 89.43 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 69 (solution.temperature,O2_free.logn,H2O.logn,relaxed.OxyHm[1].logn,relaxed.OxyHm[2].logn,relaxed.OxyHm[3].logn,relaxed.OxyHm[4].logn,relaxed.DeoxyHm[1].logn,relaxed.DeoxyHm[2].logn,relaxed.DeoxyHm[3].logn,relaxed.DeoxyHm[4].logn,relaxed.HmAH[1].logn,relaxed.HmAH[2].logn,relaxed.HmAH[3].logn,relaxed.HmAH[4].logn,relaxed.HmA[1].logn,relaxed.HmA[2].logn,relaxed.HmA[3].logn,relaxed.HmA[4].logn,relaxed.HmNH3[1].logn,relaxed.HmNH3[2].logn,relaxed.HmNH3[3].logn,relaxed.HmNH3[4].logn,relaxed.HmNH2[1].logn,relaxed.HmNH2[2].logn,relaxed.HmNH2[3].logn,relaxed.HmNH2[4].logn,relaxed.HmNHCOO[1].logn,relaxed.HmNHCOO[2].logn,relaxed.HmNHCOO[3].logn,relaxed.HmNHCOO[4].logn,relaxed.COHm[1].logn,relaxed.COHm[2].logn,relaxed.COHm[3].logn,relaxed.COHm[4].logn,tensed.OxyHm[1].logn,tensed.OxyHm[2].logn,tensed.OxyHm[3].logn,tensed.OxyHm[4].logn,tensed.DeoxyHm[1].logn,tensed.DeoxyHm[2].logn,tensed.DeoxyHm[3].logn,tensed.DeoxyHm[4].logn,tensed.HmAH[1].logn,tensed.HmAH[2].logn,tensed.HmAH[3].logn,tensed.HmAH[4].logn,tensed.HmA[1].logn,tensed.HmA[2].logn,tensed.HmA[3].logn,tensed.HmA[4].logn,tensed.HmNH3[1].logn,tensed.HmNH3[2].logn,tensed.HmNH3[3].logn,tensed.HmNH3[4].logn,tensed.HmNH2[1].logn,tensed.HmNH2[2].logn,tensed.HmNH2[3].logn,tensed.HmNH2[4].logn,tensed.HmNHCOO[1].logn,tensed.HmNHCOO[2].logn,tensed.HmNHCOO[3].logn,tensed.HmNHCOO[4].logn,tensed.COHm[1].logn,tensed.COHm[2].logn,tensed.COHm[3].logn,tensed.COHm[4].logn,CO2_free.logn,CO_free.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 (1436): * Single equations (assignments): 1433 * 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%), (41,12,73.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01959/14.72, allocations: 4.189 MB / 2.348 GB, free: 86.09 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.5848/15.3, allocations: 32.72 MB / 2.38 GB, free: 218.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/15.3, allocations: 0 / 2.38 GB, free: 218.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.09944/15.4, allocations: 17.58 MB / 2.397 GB, free: 218.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0359/15.44, allocations: 2.864 MB / 2.4 GB, free: 217.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1922/15.63, allocations: 43.94 MB / 2.443 GB, free: 202 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03491/15.67, allocations: 11.06 MB / 2.453 GB, free: 199.3 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01773/15.68, allocations: 1.824 MB / 2.455 GB, free: 199.1 MB / 0.67 GB Notification: Performance of SimCode: time 2.354e-06/15.68, allocations: 0 / 2.455 GB, free: 199.1 MB / 0.67 GB Notification: Performance of Templates: time 2.472/18.16, allocations: 0.5989 GB / 3.054 GB, free: 78.29 MB / 0.6857 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.makefile (rm -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.sim & ./Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.pipe 2>&1)