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.001208/0.001208, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001526/0.001526, allocations: 172.7 kB / 15.95 MB, free: 208 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.328/1.328, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1879/0.1879, allocations: 15.28 MB / 306.4 MB, free: 15.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002965/0.0002966, allocations: 8 kB / 371.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2627, allocations: 54.63 MB / 426.1 MB, free: 40.21 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.008712/0.2714, allocations: 9.647 MB / 435.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02224/0.2937, allocations: 23.99 MB / 459.7 MB, free: 19.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.2961, allocations: 39.09 kB / 459.8 MB, free: 19.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001889/0.298, allocations: 0.528 MB / 460.3 MB, free: 18.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006018/0.304, allocations: 1.911 MB / 462.2 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008169/0.3122, allocations: 2.848 MB / 465.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007483/0.3197, allocations: 6.863 MB / 471.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007186/0.327, allocations: 4.455 MB / 476.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008156/0.3352, allocations: 4.105 MB / 480.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009052/0.3442, allocations: 3.994 MB / 484.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002092/0.3464, allocations: 397.2 kB / 484.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01032/0.3567, allocations: 2.956 MB / 487.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002785/0.3595, allocations: 1.383 MB / 489.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003037/0.3626, allocations: 0.9596 MB / 490.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.373, allocations: 8.308 MB / 498.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3731, allocations: 0 / 498.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3731, allocations: 4 kB / 498.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000255/0.3734, allocations: 0 / 498.5 MB, free: 13.57 MB / 366.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.0142/0.3876, allocations: 6.086 MB / 0.4927 GB, free: 7.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.3876, allocations: 8.031 kB / 0.4928 GB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005894/0.3935, allocations: 1.211 MB / 0.4939 GB, free: 6.184 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005863/0.3994, allocations: 2.97 MB / 0.4968 GB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000559/0.4, allocations: 0.676 MB / 0.4975 GB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001639/0.4016, allocations: 0.4958 MB / 0.498 GB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/0.4177, allocations: 9.329 MB / 0.5071 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.641e-05/0.4178, allocations: 7.984 kB / 0.5071 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006787/0.4185, allocations: 195.9 kB / 0.5073 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-05/0.4186, allocations: 116 kB / 0.5074 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01863/0.4372, allocations: 12.57 MB / 0.5197 GB, free: 11.55 MB / 398.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.05147/0.4887, allocations: 30.06 MB / 0.549 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.234/0.7227, allocations: 41.23 MB / 0.5893 GB, free: 99.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008175/0.731, allocations: 5.056 MB / 0.5942 GB, free: 99.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03391/0.7649, allocations: 20.75 MB / 0.6145 GB, free: 89.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.765, allocations: 66.36 kB / 0.6146 GB, free: 89.88 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003835/0.7689, allocations: 0.9547 MB / 0.6155 GB, free: 89.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=324): time 1.627e-05/0.7689, allocations: 3.125 kB / 0.6155 GB, free: 89.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=376): time 0.09407/0.863, allocations: 24.44 MB / 0.6394 GB, free: 82.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.932e-05/0.8631, allocations: 93.23 kB / 0.6394 GB, free: 81.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/0.8673, allocations: 2.932 MB / 0.6423 GB, free: 80.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009191/0.8682, allocations: 88.73 kB / 0.6424 GB, free: 80.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.8696, allocations: 2.161 MB / 0.6445 GB, free: 78.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001607/0.8712, allocations: 1.298 MB / 0.6458 GB, free: 77.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006973/0.8719, allocations: 95.44 kB / 0.6459 GB, free: 77.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002514/0.8722, allocations: 0.4993 MB / 0.6464 GB, free: 76.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00431/0.8765, allocations: 2.933 MB / 0.6492 GB, free: 75.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0051/0.8816, allocations: 4.472 MB / 0.6536 GB, free: 71.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005122/0.8867, allocations: 3.566 MB / 0.6571 GB, free: 68.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-05/0.8868, allocations: 12 kB / 0.6571 GB, free: 68.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05189/0.9387, allocations: 13.81 MB / 0.6706 GB, free: 54.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.693e-05/0.9388, allocations: 30.72 kB / 0.6706 GB, free: 54.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.021e-05/0.9389, allocations: 50.25 kB / 0.6706 GB, free: 54.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007757/0.9466, allocations: 3.496 MB / 0.6741 GB, free: 50.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005035/0.9517, allocations: 1.271 MB / 0.6753 GB, free: 49.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0266/0.9783, allocations: 16.63 MB / 0.6915 GB, free: 32.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004483/0.9829, allocations: 363.4 kB / 0.6919 GB, free: 32.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/0.984, allocations: 279.8 kB / 0.6921 GB, free: 31.77 MB / 446.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 (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 {(9,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003229/0.9872, allocations: 1.448 MB / 0.6936 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/0.9884, allocations: 347.6 kB / 0.6939 GB, free: 29.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03252/1.021, allocations: 9.67 MB / 0.7033 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.199e-05/1.021, allocations: 43.94 kB / 0.7034 GB, free: 20.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.6e-05/1.021, allocations: 8 kB / 0.7034 GB, free: 20.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001192/1.021, allocations: 19.92 kB / 0.7034 GB, free: 20.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04277/1.064, allocations: 15.42 MB / 0.7185 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.726e-05/1.064, allocations: 4 kB / 0.7185 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00406/1.068, allocations: 0.8439 MB / 0.7193 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005459/1.074, allocations: 2.147 MB / 0.7214 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001095/1.075, allocations: 135.9 kB / 0.7215 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02152/1.096, allocations: 11.45 MB / 0.7327 GB, free: 5.758 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.096, allocations: 4 kB / 0.7327 GB, free: 5.754 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04044/1.137, allocations: 12.95 MB / 0.7454 GB, free: 8.688 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003036/1.14, allocations: 0.9298 MB / 0.7463 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001353/1.141, allocations: 95.97 kB / 0.7464 GB, free: 7.641 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003581/1.145, allocations: 267.4 kB / 0.7466 GB, free: 7.379 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001728/1.147, allocations: 450.5 kB / 0.747 GB, free: 6.938 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008704/1.147, allocations: 147.9 kB / 0.7472 GB, free: 6.793 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003586/1.151, allocations: 1.969 MB / 0.7491 GB, free: 4.824 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.151, allocations: 3.938 kB / 0.7491 GB, free: 4.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009861/1.161, allocations: 2.054 MB / 0.7511 GB, free: 2.891 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 (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,(9,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003673/1.165, allocations: 1.285 MB / 0.7524 GB, free: 1.863 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.194/1.359, allocations: 7.37 MB / 0.7596 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/1.359, allocations: 0 / 0.7596 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007049/1.366, allocations: 4.075 MB / 0.7635 GB, free: 141.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003633/1.369, allocations: 0.731 MB / 0.7643 GB, free: 141.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01757/1.387, allocations: 12.6 MB / 0.7766 GB, free: 136.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/1.39, allocations: 3.308 MB / 0.7798 GB, free: 135.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00479/1.395, allocations: 1.596 MB / 0.7814 GB, free: 135.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.396, allocations: 454.4 kB / 0.7818 GB, free: 135.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.12e-07/1.396, allocations: 1.406 kB / 0.7818 GB, free: 135.5 MB / 478.1 MB Notification: Performance of Templates: time 0.1047/1.501, allocations: 84.61 MB / 0.8644 GB, free: 69.65 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)