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.0007967/0.0007968, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.000885/0.000885, allocations: 168.7 kB / 15.95 MB, free: 200 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.358/1.358, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1962/0.1962, allocations: 15.28 MB / 306.4 MB, free: 15.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 8 kB / 371.5 MB, free: 3.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2755, allocations: 54.62 MB / 426.1 MB, free: 40.07 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.HemoglobinMultipleAllosteryCO): time 0.01965/0.2952, allocations: 26.23 MB / 452.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.08059/0.3758, allocations: 79.78 MB / 0.5197 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005616/0.3815, allocations: 119.1 kB / 0.5198 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005705/0.3872, allocations: 1.703 MB / 0.5214 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02299/0.4102, allocations: 6.196 MB / 0.5275 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03018/0.4404, allocations: 9.573 MB / 0.5368 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02745/0.4679, allocations: 28.27 MB / 0.5644 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4347/0.9026, allocations: 19.08 MB / 0.5831 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02483/0.9275, allocations: 16.35 MB / 0.599 GB, free: 8.332 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03119/0.9587, allocations: 15.82 MB / 0.6145 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01072/0.9695, allocations: 1.665 MB / 0.6161 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04257/1.012, allocations: 10.42 MB / 0.6263 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01533/1.027, allocations: 5.701 MB / 0.6319 GB, free: 8.254 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01355/1.041, allocations: 3.732 MB / 0.6355 GB, free: 8.223 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05469/1.096, allocations: 38.13 MB / 0.6727 GB, free: 12.1 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/1.096, allocations: 0 / 0.6727 GB, free: 12.1 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.565e-06/1.096, allocations: 2.078 kB / 0.6727 GB, free: 12.1 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001459/1.097, allocations: 4 kB / 0.6727 GB, free: 12.09 MB / 478.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.07494/1.172, allocations: 23.68 MB / 0.6959 GB, free: 5.637 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.172, allocations: 12.03 kB / 0.6959 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02591/1.198, allocations: 4.529 MB / 0.7003 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02801/1.226, allocations: 13.04 MB / 0.713 GB, free: 8.395 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002228/1.229, allocations: 2.544 MB / 0.7155 GB, free: 6.168 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009426/1.238, allocations: 1.763 MB / 0.7172 GB, free: 4.984 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09182/1.33, allocations: 40.31 MB / 0.7566 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009179/1.331, allocations: 13.2 kB / 0.7566 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009709/1.341, allocations: 0.6797 MB / 0.7573 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000344/1.341, allocations: 416 kB / 0.7577 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3131/1.654, allocations: 54.37 MB / 0.8108 GB, free: 175.2 MB / 0.545 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.2788/1.933, allocations: 148.7 MB / 0.9559 GB, free: 52.92 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 1.197/3.13, allocations: 351.5 MB / 1.299 GB, free: 90.32 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03461/3.165, allocations: 22.99 MB / 1.322 GB, free: 86.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1487/3.314, allocations: 101.5 MB / 1.421 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.611e-05/3.314, allocations: 147.6 kB / 1.421 GB, free: 12.07 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02153/3.335, allocations: 5.169 MB / 1.426 GB, free: 7.012 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1160): time 4.073e-05/3.335, allocations: 0 / 1.426 GB, free: 7.012 MB / 0.545 GB Notification: Performance of matching and sorting (n=1312): time 0.8967/4.232, allocations: 149.9 MB / 1.572 GB, free: 90.18 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/4.232, allocations: 197.6 kB / 1.573 GB, free: 89.98 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02056/4.253, allocations: 11.88 MB / 1.584 GB, free: 78.15 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.004732/4.258, allocations: 243.7 kB / 1.584 GB, free: 77.91 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00578/4.263, allocations: 8.036 MB / 1.592 GB, free: 69.85 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.007729/4.271, allocations: 4.543 MB / 1.597 GB, free: 65.34 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004928/4.276, allocations: 344 kB / 1.597 GB, free: 65.01 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00146/4.278, allocations: 1.001 MB / 1.598 GB, free: 64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02345/4.301, allocations: 13.79 MB / 1.611 GB, free: 50.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2472/4.548, allocations: 19.26 MB / 1.63 GB, free: 146.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02698/4.575, allocations: 16.46 MB / 1.646 GB, free: 144.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002587/4.576, allocations: 50.19 kB / 1.646 GB, free: 144.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=2196) (initialization): time 0.4563/5.032, allocations: 93.1 MB / 1.737 GB, free: 108.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002686/5.032, allocations: 86.33 kB / 1.737 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003306/5.033, allocations: 174.2 kB / 1.738 GB, free: 108.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06112/5.094, allocations: 26.1 MB / 1.763 GB, free: 82.25 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01962/5.113, allocations: 4.337 MB / 1.767 GB, free: 77.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4528/5.566, allocations: 102.3 MB / 1.867 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02042/5.587, allocations: 1.331 MB / 1.868 GB, free: 123 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005812/5.593, allocations: 1.094 MB / 1.87 GB, free: 122.8 MB / 0.545 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.01648/5.609, allocations: 6.209 MB / 1.876 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005773/5.615, allocations: 1.229 MB / 1.877 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2811/5.896, allocations: 57.45 MB / 1.933 GB, free: 97.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001312/5.896, allocations: 137 kB / 1.933 GB, free: 97.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001585/5.896, allocations: 26.16 kB / 1.933 GB, free: 97.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000397/5.897, allocations: 75.67 kB / 1.933 GB, free: 97.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5614/6.458, allocations: 86 MB / 2.017 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00012/6.458, allocations: 5.031 kB / 2.017 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01554/6.474, allocations: 2.82 MB / 2.02 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0344/6.508, allocations: 14.18 MB / 2.034 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004564/6.513, allocations: 0.5465 MB / 2.034 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1197/6.633, allocations: 50.75 MB / 2.084 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/6.633, allocations: 8.344 kB / 2.084 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3034/6.936, allocations: 74.47 MB / 2.157 GB, free: 69.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01144/6.948, allocations: 3.873 MB / 2.16 GB, free: 66.66 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005189/6.953, allocations: 347.9 kB / 2.161 GB, free: 66.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01529/6.968, allocations: 0.9219 MB / 2.162 GB, free: 65.44 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.008117/6.976, allocations: 1.798 MB / 2.163 GB, free: 63.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003667/6.98, allocations: 0.5463 MB / 2.164 GB, free: 63.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01351/6.993, allocations: 8.14 MB / 2.172 GB, free: 55.01 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.12e-07/6.993, allocations: 0 / 2.172 GB, free: 55.01 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.03476/7.028, allocations: 7.841 MB / 2.179 GB, free: 47.59 MB / 0.545 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.01135/7.04, allocations: 4.186 MB / 2.184 GB, free: 44.05 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2923/7.332, allocations: 32.54 MB / 2.215 GB, free: 143 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/7.332, allocations: 0 / 2.215 GB, free: 143 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.04046/7.373, allocations: 17.53 MB / 2.232 GB, free: 142.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01834/7.391, allocations: 2.723 MB / 2.235 GB, free: 142.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09903/7.49, allocations: 50.49 MB / 2.284 GB, free: 120.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01757/7.508, allocations: 11.41 MB / 2.296 GB, free: 117.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02334/7.531, allocations: 6.157 MB / 2.302 GB, free: 116.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009584/7.541, allocations: 1.665 MB / 2.303 GB, free: 116.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.273e-06/7.541, allocations: 0 / 2.303 GB, free: 116.6 MB / 0.545 GB Notification: Performance of Templates: time 0.9584/8.499, allocations: 350 MB / 2.645 GB, free: 136.2 MB / 0.5607 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)