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: translateModel(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC") translateModel(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009777/0.0009776, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.008683/0.008683, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.24/0.24, allocations: 15.27 MB / 306.7 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 12.28 kB / 372.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.313, allocations: 54.63 MB / 426.7 MB, free: 40.02 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.Allosteric_Hemoglobin2_MWC): time 0.02912/0.3421, allocations: 28.83 MB / 455.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03051/0.3727, allocations: 25.75 MB / 481.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002359/0.3751, allocations: 40.62 kB / 481.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002088/0.3772, allocations: 0.5258 MB / 481.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007806/0.385, allocations: 1.87 MB / 483.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01055/0.3956, allocations: 3.07 MB / 486.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008154/0.4037, allocations: 7.268 MB / 494.1 MB, free: 44 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008045/0.4118, allocations: 4.778 MB / 498.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008794/0.4207, allocations: 4.542 MB / 0.4916 GB, free: 8.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009423/0.4301, allocations: 4.149 MB / 0.4956 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003105/0.4333, allocations: 404 kB / 0.496 GB, free: 4.609 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01577/0.4491, allocations: 3.05 MB / 0.499 GB, free: 1.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004082/0.4532, allocations: 1.413 MB / 0.5004 GB, free: 244 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007594/0.4608, allocations: 2.957 MB / 0.5033 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02403/0.4849, allocations: 10.3 MB / 0.5133 GB, free: 2.922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4849, allocations: 8 kB / 0.5133 GB, free: 2.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.4849, allocations: 0 / 0.5133 GB, free: 2.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000359/0.4853, allocations: 0 / 0.5133 GB, free: 2.914 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.01779/0.5031, allocations: 6.047 MB / 0.5192 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.5032, allocations: 8.031 kB / 0.5192 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007079/0.5103, allocations: 1.212 MB / 0.5204 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009931/0.5202, allocations: 3.051 MB / 0.5234 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009443/0.5212, allocations: 0.6688 MB / 0.5241 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003165/0.5244, allocations: 0.4962 MB / 0.5246 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02436/0.5488, allocations: 9.368 MB / 0.5337 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002009/0.549, allocations: 3.938 kB / 0.5337 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001813/0.5508, allocations: 196 kB / 0.5339 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/0.551, allocations: 116 kB / 0.534 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02488/0.5758, allocations: 12.6 MB / 0.5463 GB, free: 0.793 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.06699/0.6429, allocations: 30.06 MB / 0.5757 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2798/0.9227, allocations: 41.26 MB / 0.616 GB, free: 93.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008186/0.9309, allocations: 5.07 MB / 0.6209 GB, free: 92.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03441/0.9654, allocations: 20.77 MB / 0.6412 GB, free: 79.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.434e-05/0.9655, allocations: 67.8 kB / 0.6413 GB, free: 79.91 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004061/0.9696, allocations: 0.9472 MB / 0.6422 GB, free: 79.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=324): time 2.373e-05/0.9696, allocations: 0 / 0.6422 GB, free: 79.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=376): time 0.09799/1.068, allocations: 24.48 MB / 0.6661 GB, free: 56.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/1.068, allocations: 90.36 kB / 0.6662 GB, free: 56.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004205/1.072, allocations: 2.962 MB / 0.6691 GB, free: 53.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001128/1.073, allocations: 85.7 kB / 0.6692 GB, free: 53.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/1.074, allocations: 2.157 MB / 0.6713 GB, free: 51.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002141/1.077, allocations: 1.294 MB / 0.6725 GB, free: 50.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001592/1.078, allocations: 390.9 kB / 0.6729 GB, free: 49.65 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.705e-05/1.078, allocations: 309.1 kB / 0.6732 GB, free: 49.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005332/1.084, allocations: 2.952 MB / 0.6761 GB, free: 46.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005678/1.089, allocations: 4.488 MB / 0.6805 GB, free: 41.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/1.1, allocations: 7.808 MB / 0.6881 GB, free: 32.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.575e-05/1.1, allocations: 16 kB / 0.6881 GB, free: 32.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05855/1.159, allocations: 13.85 MB / 0.7016 GB, free: 19.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.231e-05/1.159, allocations: 28 kB / 0.7017 GB, free: 19.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-05/1.159, allocations: 50.66 kB / 0.7017 GB, free: 19.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008986/1.168, allocations: 3.479 MB / 0.7051 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005718/1.174, allocations: 1.273 MB / 0.7063 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03027/1.204, allocations: 16.63 MB / 0.7226 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005285/1.21, allocations: 370 kB / 0.7229 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001478/1.211, allocations: 279.8 kB / 0.7232 GB, free: 12.83 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.004595/1.216, allocations: 1.451 MB / 0.7246 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/1.217, allocations: 347.6 kB / 0.725 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04132/1.258, allocations: 9.68 MB / 0.7344 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.013e-05/1.258, allocations: 40 kB / 0.7344 GB, free: 1.395 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.307e-05/1.258, allocations: 5.125 kB / 0.7344 GB, free: 1.391 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000136/1.259, allocations: 19.92 kB / 0.7345 GB, free: 1.371 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04701/1.306, allocations: 15.44 MB / 0.7495 GB, free: 1.938 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.652e-05/1.306, allocations: 4 kB / 0.7496 GB, free: 1.934 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004727/1.31, allocations: 0.8541 MB / 0.7504 GB, free: 1.082 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2389/1.549, allocations: 2.13 MB / 0.7525 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009684/1.55, allocations: 138.8 kB / 0.7526 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02097/1.571, allocations: 11.46 MB / 0.7638 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.571, allocations: 3.219 kB / 0.7638 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04323/1.615, allocations: 12.99 MB / 0.7765 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003061/1.618, allocations: 0.9351 MB / 0.7774 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00082/1.619, allocations: 94.09 kB / 0.7775 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003029/1.622, allocations: 257.1 kB / 0.7777 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/1.623, allocations: 454.5 kB / 0.7782 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000346/1.623, allocations: 147.5 kB / 0.7783 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003006/1.626, allocations: 1.989 MB / 0.7802 GB, free: 126.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.626, allocations: 5.375 kB / 0.7802 GB, free: 126.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008588/1.635, allocations: 2.039 MB / 0.7822 GB, free: 126.3 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.003157/1.638, allocations: 1.296 MB / 0.7835 GB, free: 126.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01696/1.655, allocations: 7.401 MB / 0.7907 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.655, allocations: 2.625 kB / 0.7907 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009148/1.664, allocations: 4.088 MB / 0.7947 GB, free: 121.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005646/1.67, allocations: 0.7267 MB / 0.7954 GB, free: 121.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02199/1.692, allocations: 13.06 MB / 0.8082 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002609/1.694, allocations: 3.305 MB / 0.8114 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004818/1.699, allocations: 1.603 MB / 0.813 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/1.701, allocations: 452.1 kB / 0.8134 GB, free: 114.1 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/1.701, allocations: 0 / 0.8134 GB, free: 114.1 MB / 478.1 MB Notification: Performance of Templates: time 0.1125/1.813, allocations: 86.8 MB / 0.8982 GB, free: 28.84 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.makefile (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 & ./Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1)