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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.0009604/0.0009606, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009936/0.0009937, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2152/0.2152, allocations: 15.26 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003316, allocations: 8 kB / 371.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2882, allocations: 54.62 MB / 426 MB, free: 40.03 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65: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.0-master/package.mo:3011:6-3011:65: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.0181/0.3063, allocations: 23.21 MB / 449.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.08217/0.3885, allocations: 73.14 MB / 0.5101 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00728/0.3958, allocations: 115.1 kB / 0.5102 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007597/0.4035, allocations: 1.79 MB / 0.5119 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02989/0.4334, allocations: 6.8 MB / 0.5186 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03814/0.4716, allocations: 10.52 MB / 0.5289 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02717/0.4988, allocations: 18.48 MB / 0.5469 GB, free: 15.92 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02801/0.5268, allocations: 18.62 MB / 0.5651 GB, free: 13.21 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.5519/1.079, allocations: 16.8 MB / 0.5815 GB, free: 17.92 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03201/1.111, allocations: 15.24 MB / 0.5964 GB, free: 17.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01286/1.124, allocations: 1.664 MB / 0.598 GB, free: 17.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05868/1.182, allocations: 11.88 MB / 0.6096 GB, free: 17.92 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01696/1.199, allocations: 5.664 MB / 0.6151 GB, free: 17.92 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01244/1.212, allocations: 3.728 MB / 0.6188 GB, free: 17.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05489/1.267, allocations: 35.23 MB / 0.6532 GB, free: 12.33 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/1.267, allocations: 4 kB / 0.6532 GB, free: 12.33 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.436e-06/1.267, allocations: 0 / 0.6532 GB, free: 12.33 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001551/1.268, allocations: 0 / 0.6532 GB, free: 12.33 MB / 462.1 MB 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.08996/1.358, allocations: 23.63 MB / 0.6763 GB, free: 6.152 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.359, allocations: 10.98 kB / 0.6763 GB, free: 6.145 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03078/1.389, allocations: 4.523 MB / 0.6807 GB, free: 1.875 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03895/1.428, allocations: 12.66 MB / 0.6931 GB, free: 9.312 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002861/1.431, allocations: 2.539 MB / 0.6955 GB, free: 7.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01179/1.443, allocations: 1.769 MB / 0.6973 GB, free: 5.898 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1024/1.545, allocations: 40.17 MB / 0.7365 GB, free: 10.21 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001355/1.547, allocations: 10.75 kB / 0.7365 GB, free: 10.21 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01039/1.557, allocations: 0.6837 MB / 0.7372 GB, free: 10.07 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005092/1.558, allocations: 416 kB / 0.7376 GB, free: 9.66 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6003/2.158, allocations: 54.38 MB / 0.7907 GB, free: 169 MB / 0.5452 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.3613/2.519, allocations: 147.8 MB / 0.935 GB, free: 73.59 MB / 0.5452 GB Notification: Performance of preOpt comSubExp (simulation): time 1.32/3.839, allocations: 351.5 MB / 1.278 GB, free: 89.48 MB / 0.5452 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2171/4.056, allocations: 101.3 MB / 1.377 GB, free: 41.09 MB / 0.5452 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001215/4.056, allocations: 146.7 kB / 1.377 GB, free: 40.96 MB / 0.5452 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02761/4.084, allocations: 5.172 MB / 1.382 GB, free: 38.59 MB / 0.5452 GB Notification: Performance of pre-optimization done (n=1160): time 6.52e-05/4.084, allocations: 3.656 kB / 1.382 GB, free: 38.59 MB / 0.5452 GB Notification: Performance of matching and sorting (n=1312): time 0.9985/5.083, allocations: 150 MB / 1.529 GB, free: 125.7 MB / 0.5452 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/5.083, allocations: 185.7 kB / 1.529 GB, free: 125.5 MB / 0.5452 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01898/5.102, allocations: 11.88 MB / 1.541 GB, free: 113.7 MB / 0.5452 GB Notification: Performance of collectPreVariables (initialization): time 0.005488/5.107, allocations: 241.7 kB / 1.541 GB, free: 113.5 MB / 0.5452 GB Notification: Performance of collectInitialEqns (initialization): time 0.006053/5.114, allocations: 8.034 MB / 1.549 GB, free: 105.4 MB / 0.5452 GB Notification: Performance of collectInitialBindings (initialization): time 0.009825/5.123, allocations: 4.54 MB / 1.553 GB, free: 100.9 MB / 0.5452 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005257/5.129, allocations: 344 kB / 1.554 GB, free: 100.6 MB / 0.5452 GB Notification: Performance of setup shared object (initialization): time 0.001164/5.13, allocations: 1.005 MB / 1.555 GB, free: 99.54 MB / 0.5452 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02467/5.155, allocations: 13.79 MB / 1.568 GB, free: 85.74 MB / 0.5452 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03122/5.186, allocations: 19.2 MB / 1.587 GB, free: 64.14 MB / 0.5452 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02966/5.215, allocations: 16.46 MB / 1.603 GB, free: 47.66 MB / 0.5452 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002215/5.216, allocations: 52 kB / 1.603 GB, free: 47.61 MB / 0.5452 GB Notification: Performance of matching and sorting (n=2196) (initialization): time 0.7316/5.947, allocations: 93.1 MB / 1.694 GB, free: 134.2 MB / 0.5452 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/5.948, allocations: 79.28 kB / 1.694 GB, free: 134.2 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003505/5.948, allocations: 173.1 kB / 1.694 GB, free: 134.2 MB / 0.5452 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06791/6.016, allocations: 26.1 MB / 1.72 GB, free: 114.9 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0203/6.036, allocations: 4.338 MB / 1.724 GB, free: 110.8 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5148/6.551, allocations: 108.6 MB / 1.83 GB, free: 134.9 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02681/6.578, allocations: 1.34 MB / 1.831 GB, free: 134.9 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01019/6.588, allocations: 1.087 MB / 1.832 GB, free: 134.9 MB / 0.5452 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(41,73.3%) 12} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.02379/6.612, allocations: 6.205 MB / 1.838 GB, free: 134.7 MB / 0.5452 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007705/6.62, allocations: 1.228 MB / 1.839 GB, free: 134.7 MB / 0.5452 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3237/6.943, allocations: 57.46 MB / 1.896 GB, free: 123.1 MB / 0.5452 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002259/6.944, allocations: 139.6 kB / 1.896 GB, free: 123.1 MB / 0.5452 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002657/6.944, allocations: 23.73 kB / 1.896 GB, free: 123.1 MB / 0.5452 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006956/6.945, allocations: 68.16 kB / 1.896 GB, free: 123.1 MB / 0.5452 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3853/7.33, allocations: 85.96 MB / 1.98 GB, free: 49.49 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001695/7.33, allocations: 8 kB / 1.98 GB, free: 49.48 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01819/7.348, allocations: 2.817 MB / 1.982 GB, free: 46.66 MB / 0.5452 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03726/7.386, allocations: 14.18 MB / 1.996 GB, free: 32.52 MB / 0.5452 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005918/7.392, allocations: 0.5424 MB / 1.997 GB, free: 31.98 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4703/7.862, allocations: 53.93 MB / 2.05 GB, free: 137.5 MB / 0.5452 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/7.862, allocations: 6.625 kB / 2.05 GB, free: 137.5 MB / 0.5452 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3312/8.193, allocations: 75.33 MB / 2.123 GB, free: 105 MB / 0.5452 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01557/8.209, allocations: 3.856 MB / 2.127 GB, free: 101.8 MB / 0.5452 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007181/8.216, allocations: 339.9 kB / 2.127 GB, free: 101.5 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01671/8.233, allocations: 0.9265 MB / 2.128 GB, free: 100.6 MB / 0.5452 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.009527/8.242, allocations: 1.794 MB / 2.13 GB, free: 98.77 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004186/8.247, allocations: 0.5425 MB / 2.13 GB, free: 98.23 MB / 0.5452 GB Notification: Performance of sorting global known variables: time 0.01522/8.262, allocations: 8.14 MB / 2.138 GB, free: 90.14 MB / 0.5452 GB Notification: Performance of sort global known variables: time 6.21e-07/8.262, allocations: 3.344 kB / 2.138 GB, free: 90.14 MB / 0.5452 GB Notification: Performance of remove unused functions: time 0.04466/8.306, allocations: 7.717 MB / 2.146 GB, free: 82.83 MB / 0.5452 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(41,73.3%) 12} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01286/8.319, allocations: 4.094 MB / 2.15 GB, free: 79.75 MB / 0.5452 GB Notification: Performance of simCode: created initialization part: time 0.08163/8.401, allocations: 32.53 MB / 2.182 GB, free: 47.21 MB / 0.5452 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/8.401, allocations: 0 / 2.182 GB, free: 47.21 MB / 0.5452 GB Notification: Performance of simCode: created simulation system equations: time 0.04959/8.451, allocations: 17.54 MB / 2.199 GB, free: 29.64 MB / 0.5452 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01958/8.47, allocations: 2.496 MB / 2.201 GB, free: 27.2 MB / 0.5452 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3767/8.847, allocations: 50.47 MB / 2.25 GB, free: 123.6 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02374/8.871, allocations: 11.74 MB / 2.262 GB, free: 122.4 MB / 0.5452 GB Notification: Performance of simCode: alias equations: time 0.02315/8.894, allocations: 6.159 MB / 2.268 GB, free: 122.1 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009527/8.904, allocations: 1.662 MB / 2.27 GB, free: 122.1 MB / 0.5452 GB Notification: Performance of SimCode: time 1.433e-06/8.904, allocations: 0 / 2.27 GB, free: 122.1 MB / 0.5452 GB Notification: Performance of Templates: time 0.7326/9.636, allocations: 348.1 MB / 2.61 GB, free: 6.504 MB / 0.5608 GB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.HemoglobinMultipleAllosteryCO.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: